/prebuilts/go/darwin-x86/test/fixedbugs/ |
bug148.go | 11 func println(x, y int) { } 13 func f(x interface{}) interface{} { 25 func main() { 32 func p1() { 37 func shouldPanic(f func()) { 38 defer func() {
|
bug184.go | 13 func (*Buffer) Read() {} 19 func f() *Buffer { return nil } 21 func g() Reader { 26 func h() (b *Buffer, ok bool) { return } 28 func i() (r Reader, ok bool) { 33 func fmter() (s string, i int, t string) { return "%#x %q", 100, "hello" } 35 func main() {
|
bug441.go | 14 func main() { 26 func foo(_ int) {} 27 func foo2(_, _ int) {} 28 func foo3(int, int) {} 30 func (_ T) m1() {} 31 func (t T) m2(_ int) {} 33 func side() int {
|
/prebuilts/go/darwin-x86/test/interface/ |
returntype.go | 14 func (s *S) Name() int8 { return 1 } 15 func (t *T) Name() int64 { return 64 } 20 func main() { 24 func p1() { 31 func shouldPanic(f func()) { 32 defer func() {
|
/prebuilts/go/linux-x86/src/cmd/api/testdata/src/pkg/p1/ |
p1.go | 100 func (myInt) privateTypeMethod() {} 101 func (myInt) CapitalMethodUnexportedType() {} 103 func (s *S2) SMethod(x int8, y int16, z int64) {} 107 func (s) method() 108 func (s) Method() 110 func (S) StructValueMethod() 111 func (ignored S) StructValueMethodNamedRecv() 113 func (s *S2) unexported(x int8, y int16, z int64) {} 115 func Bar(x int8, y int16, z int64) {} 116 func Bar1(x int8, y int16, z int64) uint64 { [all...] |
/prebuilts/go/linux-x86/src/go/doc/testdata/ |
b.1.golden | 25 func F(x int) int 28 func NotAFactory() int 39 func (x *T) M() 70 func F1() notExported 73 func f2() notExported 79 func UintFactory() uint 82 func uintFactory() uint
|
/prebuilts/go/linux-x86/src/hash/fnv/ |
fnv.go | 30 func New32() hash.Hash32 { 36 func New32a() hash.Hash32 { 42 func New64() hash.Hash64 { 48 func New64a() hash.Hash64 { 53 func (s *sum32) Reset() { *s = offset32 } 54 func (s *sum32a) Reset() { *s = offset32 } 55 func (s *sum64) Reset() { *s = offset64 } 56 func (s *sum64a) Reset() { *s = offset64 } 58 func (s *sum32) Sum32() uint32 { return uint32(*s) } 59 func (s *sum32a) Sum32() uint32 { return uint32(*s) [all...] |
/prebuilts/go/linux-x86/src/net/ |
hook_unix.go | 12 testHookDialChannel = func() {} // see golang.org/issue/5349 15 socketFunc func(int, int, int) (int, error) = syscall.Socket 16 closeFunc func(int) error = syscall.Close 17 connectFunc func(int, syscall.Sockaddr) error = syscall.Connect 18 listenFunc func(int, int) error = syscall.Listen 19 acceptFunc func(int) (int, syscall.Sockaddr, error) = syscall.Accept 20 getsockoptIntFunc func(int, int, int) (int, error) = syscall.GetsockoptInt
|
/prebuilts/go/linux-x86/src/runtime/race/testdata/ |
comp_test.go | 19 func TestNoRaceComp(t *testing.T) { 22 go func() { 30 func TestNoRaceComp2(t *testing.T) { 33 go func() { 41 func TestRaceComp(t *testing.T) { 44 go func() { 52 func TestRaceComp2(t *testing.T) { 55 go func() { 63 func TestRaceComp3(t *testing.T) { 66 go func() { [all...] |
sync_test.go | 13 func TestNoRaceCond(t *testing.T) { 18 go func() { 33 func TestRaceCond(t *testing.T) { 39 go func() { 65 func TestRaceAnnounceThreads(t *testing.T) { 71 var f, g, h func() 72 f = func() { 75 go func() { 83 g = func() { 85 go func() { [all...] |
/prebuilts/go/linux-x86/src/syscall/ |
syscall_solaris_amd64.go | 7 func Getpagesize() int { return 4096 } 9 func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) } 11 func NsecToTimespec(nsec int64) (ts Timespec) { 17 func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 } 19 func NsecToTimeval(nsec int64) (tv Timeval) { 26 func (iov *Iovec) SetLen(length int) { 30 func (cmsg *Cmsghdr) SetLen(length int) {
|
/prebuilts/go/linux-x86/src/testing/ |
allocs_test.go | 13 fn func() 16 {"alloc *byte", func() { global = new(*byte) }, 1}, 17 {"alloc complex128", func() { global = new(complex128) }, 1}, 18 {"alloc float64", func() { global = new(float64) }, 1}, 19 {"alloc int32", func() { global = new(int32) }, 1}, 20 {"alloc byte", func() { global = new(byte) }, 1}, 23 func TestAllocsPerRun(t *testing.T) {
|
/prebuilts/go/linux-x86/test/ |
defer.go | 15 func addInt(i int) { result += fmt.Sprint(i) } 17 func test1helper() { 23 func test1() { 32 func addDotDotDot(v ...interface{}) { result += fmt.Sprint(v...) } 34 func test2helper() { 40 func test2() { 49 func main() {
|
recover3.go | 18 func bug() { 26 func check(name string, f func(), err string) { 27 defer func() { 51 func main() { 58 check("int-div-zero", func() { println(1 / x) }, "integer divide by zero") 59 check("int64-div-zero", func() { println(1 / x64) }, "integer divide by zero") 61 check("nil-deref", func() { println(p[0]) }, "nil pointer dereference") 62 check("nil-deref-1", func() { println(p[1]) }, "nil pointer dereference") 63 check("nil-deref-big", func() { println(q[5000]) }, "nil pointer dereference" [all...] |
/prebuilts/go/linux-x86/test/fixedbugs/ |
bug113.go | 11 func foo1(i int) int { return i } 12 func foo2(i int32) int32 { return i } 13 func main() { 28 func p1() { 37 func shouldPanic(f func()) { 38 defer func() {
|
bug148.go | 11 func println(x, y int) { } 13 func f(x interface{}) interface{} { 25 func main() { 32 func p1() { 37 func shouldPanic(f func()) { 38 defer func() {
|
bug184.go | 13 func (*Buffer) Read() {} 19 func f() *Buffer { return nil } 21 func g() Reader { 26 func h() (b *Buffer, ok bool) { return } 28 func i() (r Reader, ok bool) { 33 func fmter() (s string, i int, t string) { return "%#x %q", 100, "hello" } 35 func main() {
|
bug441.go | 14 func main() { 26 func foo(_ int) {} 27 func foo2(_, _ int) {} 28 func foo3(int, int) {} 30 func (_ T) m1() {} 31 func (t T) m2(_ int) {} 33 func side() int {
|
/prebuilts/go/linux-x86/test/interface/ |
returntype.go | 14 func (s *S) Name() int8 { return 1 } 15 func (t *T) Name() int64 { return 64 } 20 func main() { 24 func p1() { 31 func shouldPanic(f func()) { 32 defer func() {
|
/prebuilts/go/darwin-x86/src/testing/quick/ |
quick_test.go | 13 func fArray(a [4]byte) [4]byte { return a } 17 func fArrayAlias(a TestArrayAlias) TestArrayAlias { return a } 19 func fBool(a bool) bool { return a } 23 func fBoolAlias(a TestBoolAlias) TestBoolAlias { return a } 25 func fFloat32(a float32) float32 { return a } 29 func fFloat32Alias(a TestFloat32Alias) TestFloat32Alias { return a } 31 func fFloat64(a float64) float64 { return a } 35 func fFloat64Alias(a TestFloat64Alias) TestFloat64Alias { return a } 37 func fComplex64(a complex64) complex64 { return a } 41 func fComplex64Alias(a TestComplex64Alias) TestComplex64Alias { return a [all...] |
/prebuilts/go/linux-x86/src/testing/quick/ |
quick_test.go | 13 func fArray(a [4]byte) [4]byte { return a } 17 func fArrayAlias(a TestArrayAlias) TestArrayAlias { return a } 19 func fBool(a bool) bool { return a } 23 func fBoolAlias(a TestBoolAlias) TestBoolAlias { return a } 25 func fFloat32(a float32) float32 { return a } 29 func fFloat32Alias(a TestFloat32Alias) TestFloat32Alias { return a } 31 func fFloat64(a float64) float64 { return a } 35 func fFloat64Alias(a TestFloat64Alias) TestFloat64Alias { return a } 37 func fComplex64(a complex64) complex64 { return a } 41 func fComplex64Alias(a TestComplex64Alias) TestComplex64Alias { return a [all...] |
/prebuilts/go/darwin-x86/src/go/internal/gcimporter/testdata/ |
exports.go | 17 func init() {} 62 T15 func() 63 T16 func(int) 64 T17 func(x int) 65 T18 func() float32 66 T19 func() (x float32) 67 T20 func(...interface{}) 75 T28 func(T28) T28 83 func F1() {} 84 func F2(x int) { [all...] |
/prebuilts/go/darwin-x86/test/ |
recover3.go | 18 func bug() { 26 func check(name string, f func(), err string) { 27 defer func() { 51 func main() { 58 check("int-div-zero", func() { println(1 / x) }, "integer divide by zero") 59 check("int64-div-zero", func() { println(1 / x64) }, "integer divide by zero") 61 check("nil-deref", func() { println(p[0]) }, "nil pointer dereference") 62 check("nil-deref-1", func() { println(p[1]) }, "nil pointer dereference") 63 check("nil-deref-big", func() { println(q[5000]) }, "nil pointer dereference" [all...] |
/prebuilts/go/linux-x86/src/go/internal/gcimporter/testdata/ |
exports.go | 17 func init() {} 62 T15 func() 63 T16 func(int) 64 T17 func(x int) 65 T18 func() float32 66 T19 func() (x float32) 67 T20 func(...interface{}) 75 T28 func(T28) T28 83 func F1() {} 84 func F2(x int) { [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/ |
test_refcounts.py | 39 def func(*args): function in function:RefcountTestCase.test_refcount 41 # this is the standard refcount for func 42 self.assertEqual(grc(func), 2) 44 # the CFuncPtr instance holds atr least one refcount on func: 45 f = OtherCallback(func) 46 self.assertTrue(grc(func) > 2) 50 self.assertTrue(grc(func) >= 2) 54 self.assertTrue(grc(func) == 2) 59 x.a = OtherCallback(func) 61 # the CFuncPtr instance holds atr least one refcount on func 89 def func(a, b): function in function:AnotherLeak.test_callback [all...] |