Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
eb37b5b7
Commit
eb37b5b7
authored
Feb 24, 2012
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: document ken/*.go
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/5694065
parent
51a84bbf
Changes
40
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
75 additions
and
1 deletion
+75
-1
test/ken/array.go
test/ken/array.go
+2
-0
test/ken/chan.go
test/ken/chan.go
+2
-0
test/ken/chan1.go
test/ken/chan1.go
+2
-0
test/ken/complit.go
test/ken/complit.go
+2
-0
test/ken/convert.go
test/ken/convert.go
+2
-1
test/ken/cplx0.go
test/ken/cplx0.go
+2
-0
test/ken/cplx1.go
test/ken/cplx1.go
+2
-0
test/ken/cplx2.go
test/ken/cplx2.go
+2
-0
test/ken/cplx3.go
test/ken/cplx3.go
+2
-0
test/ken/cplx4.go
test/ken/cplx4.go
+3
-0
test/ken/cplx5.go
test/ken/cplx5.go
+2
-0
test/ken/divconst.go
test/ken/divconst.go
+2
-0
test/ken/divmod.go
test/ken/divmod.go
+2
-0
test/ken/embed.go
test/ken/embed.go
+2
-0
test/ken/for.go
test/ken/for.go
+1
-0
test/ken/interbasic.go
test/ken/interbasic.go
+2
-0
test/ken/interfun.go
test/ken/interfun.go
+2
-0
test/ken/intervar.go
test/ken/intervar.go
+2
-0
test/ken/label.go
test/ken/label.go
+2
-0
test/ken/litfun.go
test/ken/litfun.go
+1
-0
test/ken/mfunc.go
test/ken/mfunc.go
+2
-0
test/ken/modconst.go
test/ken/modconst.go
+2
-0
test/ken/ptrfun.go
test/ken/ptrfun.go
+1
-0
test/ken/ptrvar.go
test/ken/ptrvar.go
+1
-0
test/ken/range.go
test/ken/range.go
+2
-0
test/ken/rob1.go
test/ken/rob1.go
+2
-0
test/ken/rob2.go
test/ken/rob2.go
+3
-0
test/ken/robfor.go
test/ken/robfor.go
+2
-0
test/ken/robfunc.go
test/ken/robfunc.go
+2
-0
test/ken/shift.go
test/ken/shift.go
+2
-0
test/ken/simparray.go
test/ken/simparray.go
+2
-0
test/ken/simpbool.go
test/ken/simpbool.go
+2
-0
test/ken/simpconv.go
test/ken/simpconv.go
+2
-0
test/ken/simpfun.go
test/ken/simpfun.go
+1
-0
test/ken/simpswitch.go
test/ken/simpswitch.go
+2
-0
test/ken/simpvar.go
test/ken/simpvar.go
+2
-0
test/ken/slicearray.go
test/ken/slicearray.go
+2
-0
test/ken/sliceslice.go
test/ken/sliceslice.go
+2
-0
test/ken/string.go
test/ken/string.go
+1
-0
test/ken/strvar.go
test/ken/strvar.go
+1
-0
No files found.
test/ken/array.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test arrays and slices.
package
main
func
setpd
(
a
[]
int
)
{
...
...
test/ken/chan.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test communication operations including select.
package
main
import
"os"
...
...
test/ken/chan1.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test communication with multiple simultanous goroutines.
package
main
import
"runtime"
...
...
test/ken/complit.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test composite literals.
package
main
type
M
map
[
int
]
int
...
...
test/ken/convert.go
View file @
eb37b5b7
...
...
@@ -4,7 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// near-exhaustive test of converting numbers between types.
// Test, near-exhaustive, of converting numbers between types.
// No complex numbers though.
package
main
...
...
test/ken/cplx0.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test trivial, bootstrap-level complex numbers, including printing.
package
main
const
(
...
...
test/ken/cplx1.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test simple arithmetic and assignment for complex numbers.
package
main
const
(
...
...
test/ken/cplx2.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test arithmetic on complex numbers, including multiplication and division.
package
main
const
(
...
...
test/ken/cplx3.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test composition, decomposition, and reflection on complex numbers.
package
main
import
"unsafe"
...
...
test/ken/cplx4.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test complex numbers,including fmt support.
// Used to crash.
package
main
import
"fmt"
...
...
test/ken/cplx5.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test compound types made of complex numbers.
package
main
var
a
[
12
]
complex128
...
...
test/ken/divconst.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test integer division by constants.
package
main
import
"math/rand"
...
...
test/ken/divmod.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test integer division and modulus.
package
main
const
(
...
...
test/ken/embed.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test embedded fields of structs, including methods.
package
main
...
...
test/ken/for.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test simple for loop.
package
main
...
...
test/ken/interbasic.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test interfaces on basic types.
package
main
type
myint
int
...
...
test/ken/interfun.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test interfaces and methods.
package
main
type
S
struct
{
...
...
test/ken/intervar.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test interface assignment.
package
main
type
Iputs
interface
{
...
...
test/ken/label.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test goto and labels.
package
main
func
main
()
{
...
...
test/ken/litfun.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test simple function literals.
package
main
...
...
test/ken/mfunc.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test simple multi-argument multi-valued function.
package
main
func
...
...
test/ken/modconst.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test integer modulus by contstants.
package
main
import
"math/rand"
...
...
test/ken/ptrfun.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test method invocation with pointer receivers and function-valued fields.
package
main
...
...
test/ken/ptrvar.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test pointers and the . (selector) operator on structs.
package
main
...
...
test/ken/range.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test 'for range' on arrays, slices, and maps.
package
main
const
size
=
16
...
...
test/ken/rob1.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test general operation using a list implementation.
package
main
type
Item
interface
{
...
...
test/ken/rob2.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test general operation using s-list.
// First Go program ever run (although not in this exact form).
package
main
import
"fmt"
...
...
test/ken/robfor.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test for loops of many forms.
package
main
func
assertequal
(
is
,
shouldbe
int
,
msg
string
)
{
...
...
test/ken/robfunc.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test functions of many signatures.
package
main
func
assertequal
(
is
,
shouldbe
int
,
msg
string
)
{
...
...
test/ken/shift.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test shift.
package
main
var
ians
[
18
]
int
;
...
...
test/ken/simparray.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test simple operations on arrays.
package
main
var
b
[
10
]
float32
;
...
...
test/ken/simpbool.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test basic operations on bool.
package
main
type
s
struct
{
...
...
test/ken/simpconv.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test simple arithmetic conversion.
package
main
type
vlong
int64
...
...
test/ken/simpfun.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test simple functions.
package
main
...
...
test/ken/simpswitch.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test simple switch.
package
main
func
main
()
{
...
...
test/ken/simpvar.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test scoping of variables.
package
main
...
...
test/ken/slicearray.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test basic operations of slices and arrays.
package
main
var
bx
[
10
]
byte
...
...
test/ken/sliceslice.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test slicing and re-slicing.
package
main
var
bx
[]
byte
...
...
test/ken/string.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test string operations including printing.
package
main
...
...
test/ken/strvar.go
View file @
eb37b5b7
...
...
@@ -4,6 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test struct-valued variables (not pointers).
package
main
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment