/prebuilts/go/linux-x86/src/net/ |
ip_test.go | 45 for _, tt := range parseIPTests { 46 if out := ParseIP(tt.in); !reflect.DeepEqual(out, tt.out) { 47 t.Errorf("ParseIP(%q) = %v, want %v", tt.in, out, tt.out) 49 if tt.in == "" { 54 if err := out.UnmarshalText([]byte(tt.in)); !reflect.DeepEqual(out, tt.out) || (tt.out == nil) != (err != nil) { 55 t.Errorf("IP.UnmarshalText(%q) = %v, %v, want %v", tt.in, out, err, tt.out [all...] |
addrselect_test.go | 121 for i, tt := range tests { 122 inCopy := make([]IPAddr, len(tt.in)) 123 copy(inCopy, tt.in) 124 srcCopy := make([]IP, len(tt.in)) 125 copy(srcCopy, tt.srcs) 127 if !reflect.DeepEqual(inCopy, tt.want) { 128 t.Errorf("test %d:\nin = %s\ngot: %s\nwant: %s\n", i, tt.in, inCopy, tt.want) 130 if tt.reverse { 131 copy(inCopy, tt.in [all...] |
packetconn_test.go | 48 for _, tt := range packetConnTests { 49 wb, skipOrFatalFn := packetConnTestData(t, tt.net) 55 c1, err := ListenPacket(tt.net, tt.addr1) 59 defer closer(c1, tt.net, tt.addr1, tt.addr2) 65 c2, err := ListenPacket(tt.net, tt.addr2) 69 defer closer(c2, tt.net, tt.addr1, tt.addr2 [all...] |
parse_test.go | 73 for _, tt := range tests { 74 os.Setenv("GODEBUG", tt.godebug) 75 if got := goDebugString(tt.key); got != tt.want { 76 t.Errorf("for %q, goDebugString(%q) = %q; want %q", tt.godebug, tt.key, got, tt.want) 82 for _, tt := range []struct { 95 n, i, ok := dtoi(tt.in) 96 if n != tt.out || i != tt.off || ok != tt.ok [all...] |
/prebuilts/go/darwin-x86/src/unicode/utf16/ |
utf16_test.go | 38 for _, tt := range encodeTests { 39 out := Encode(tt.in) 40 if !reflect.DeepEqual(out, tt.out) { 41 t.Errorf("Encode(%x) = %x; want %x", tt.in, out, tt.out) 47 for i, tt := range encodeTests { 49 for _, r := range tt.in { 52 if j >= len(tt.out) { 53 t.Errorf("#%d: ran out of tt.out", i) 61 if j+1 >= len(tt.out) [all...] |
/prebuilts/go/linux-x86/src/unicode/utf16/ |
utf16_test.go | 38 for _, tt := range encodeTests { 39 out := Encode(tt.in) 40 if !reflect.DeepEqual(out, tt.out) { 41 t.Errorf("Encode(%x) = %x; want %x", tt.in, out, tt.out) 47 for i, tt := range encodeTests { 49 for _, r := range tt.in { 52 if j >= len(tt.out) { 53 t.Errorf("#%d: ran out of tt.out", i) 61 if j+1 >= len(tt.out) [all...] |
/external/clang/test/Sema/ |
implicit-int.c | 18 #define ILPAD() PAD((NROW - tt.tt_row) * 10) /* 1 ms per char */
|
/prebuilts/go/darwin-x86/src/runtime/ |
futex_test.go | 49 tt := &futexsleepTests[i] 50 tt.mtx = 0 51 tt.ch = make(chan *futexsleepTest, 1) 53 go func(tt *futexsleepTest) { 55 runtime.Futexsleep(&tt.mtx, 0, tt.ns) 57 tt.ch <- tt 59 }(tt) 64 case tt := <-futexsleepTests[beforeY2038].ch [all...] |
/prebuilts/go/linux-x86/src/runtime/ |
futex_test.go | 49 tt := &futexsleepTests[i] 50 tt.mtx = 0 51 tt.ch = make(chan *futexsleepTest, 1) 53 go func(tt *futexsleepTest) { 55 runtime.Futexsleep(&tt.mtx, 0, tt.ns) 57 tt.ch <- tt 59 }(tt) 64 case tt := <-futexsleepTests[beforeY2038].ch [all...] |
/prebuilts/go/darwin-x86/src/net/ |
addrselect_test.go | 121 for i, tt := range tests { 122 inCopy := make([]IPAddr, len(tt.in)) 123 copy(inCopy, tt.in) 124 srcCopy := make([]IP, len(tt.in)) 125 copy(srcCopy, tt.srcs) 127 if !reflect.DeepEqual(inCopy, tt.want) { 128 t.Errorf("test %d:\nin = %s\ngot: %s\nwant: %s\n", i, tt.in, inCopy, tt.want) 130 if tt.reverse { 131 copy(inCopy, tt.in [all...] |
packetconn_test.go | 48 for _, tt := range packetConnTests { 49 wb, skipOrFatalFn := packetConnTestData(t, tt.net) 55 c1, err := ListenPacket(tt.net, tt.addr1) 59 defer closer(c1, tt.net, tt.addr1, tt.addr2) 65 c2, err := ListenPacket(tt.net, tt.addr2) 69 defer closer(c2, tt.net, tt.addr1, tt.addr2 [all...] |
parse_test.go | 73 for _, tt := range tests { 74 os.Setenv("GODEBUG", tt.godebug) 75 if got := goDebugString(tt.key); got != tt.want { 76 t.Errorf("for %q, goDebugString(%q) = %q; want %q", tt.godebug, tt.key, got, tt.want) 82 for _, tt := range []struct { 95 n, i, ok := dtoi(tt.in) 96 if n != tt.out || i != tt.off || ok != tt.ok [all...] |
iprawsock_test.go | 64 for _, tt := range resolveIPAddrTests { 65 addr, err := ResolveIPAddr(tt.network, tt.litAddrOrName) 66 if !reflect.DeepEqual(addr, tt.addr) || !reflect.DeepEqual(err, tt.err) { 67 t.Errorf("ResolveIPAddr(%q, %q) = %#v, %v, want %#v, %v", tt.network, tt.litAddrOrName, addr, err, tt.addr, tt.err) 72 if !reflect.DeepEqual(addr2, tt.addr) || err != tt.err [all...] |
/prebuilts/go/darwin-x86/src/vendor/golang_org/x/net/lex/httplex/ |
httplex_test.go | 95 for _, tt := range tests { 96 got := HeaderValuesContainsToken(tt.vals, tt.token) 97 if got != tt.want { 98 t.Errorf("headerValuesContainsToken(%q, %q) = %v; want %v", tt.vals, tt.token, got, tt.want) 113 for _, tt := range tests { 114 got, err := PunycodeHostPort(tt.in) 115 if tt.want != got || err != nil [all...] |
/prebuilts/go/darwin-x86/test/fixedbugs/ |
bug291.go | 17 var tt, ok = i.(*T) var 20 if tt == nil || tt.x != 42 {
|
/prebuilts/go/linux-x86/src/vendor/golang_org/x/net/lex/httplex/ |
httplex_test.go | 95 for _, tt := range tests { 96 got := HeaderValuesContainsToken(tt.vals, tt.token) 97 if got != tt.want { 98 t.Errorf("headerValuesContainsToken(%q, %q) = %v; want %v", tt.vals, tt.token, got, tt.want) 113 for _, tt := range tests { 114 got, err := PunycodeHostPort(tt.in) 115 if tt.want != got || err != nil [all...] |
/prebuilts/go/linux-x86/test/fixedbugs/ |
bug291.go | 17 var tt, ok = i.(*T) var 20 if tt == nil || tt.x != 42 {
|
/prebuilts/go/darwin-x86/src/cmd/compile/internal/ssa/ |
sizeof_test.go | 29 for _, tt := range tests { 30 want := tt._32bit 32 want = tt._64bit 34 got := reflect.TypeOf(tt.val).Size() 36 t.Errorf("unsafe.Sizeof(%T) = %d, want %d", tt.val, got, want)
|
/prebuilts/go/darwin-x86/src/cmd/internal/goobj/ |
read_test.go | 23 for _, tt := range importPathToPrefixTests { 24 if out := importPathToPrefix(tt.in); out != tt.out { 25 t.Errorf("importPathToPrefix(%q) = %q, want %q", tt.in, out, tt.out)
|
/prebuilts/go/darwin-x86/src/cmd/internal/obj/ |
sizeof_test.go | 30 for _, tt := range tests { 31 want := tt._32bit 33 want = tt._64bit 35 got := reflect.TypeOf(tt.val).Size() 37 t.Errorf("unsafe.Sizeof(%T) = %d, want %d", tt.val, got, want)
|
/prebuilts/go/darwin-x86/src/debug/elf/ |
elf_test.go | 43 for i, tt := range nameTests { 44 s := fmt.Sprint(tt.val) 45 if s != tt.str { 46 t.Errorf("#%d: Sprint(%d) = %q, want %q", i, tt.val, s, tt.str)
|
/prebuilts/go/darwin-x86/src/os/exec/ |
internal_test.go | 49 for i, tt := range tests { 50 w := &prefixSuffixSaver{N: tt.N} 51 for _, s := range tt.writes { 57 if got := string(w.Bytes()); got != tt.want { 58 t.Errorf("%d. Bytes = %q; want %q", i, got, tt.want)
|
/prebuilts/go/darwin-x86/src/testing/ |
allocs_test.go | 24 for _, tt := range allocsPerRunTests { 25 if allocs := testing.AllocsPerRun(100, tt.fn); allocs != tt.allocs { 26 t.Errorf("AllocsPerRun(100, %s) = %v, want %v", tt.name, allocs, tt.allocs)
|
/prebuilts/go/linux-x86/src/cmd/compile/internal/ssa/ |
sizeof_test.go | 29 for _, tt := range tests { 30 want := tt._32bit 32 want = tt._64bit 34 got := reflect.TypeOf(tt.val).Size() 36 t.Errorf("unsafe.Sizeof(%T) = %d, want %d", tt.val, got, want)
|
/prebuilts/go/linux-x86/src/cmd/internal/goobj/ |
read_test.go | 23 for _, tt := range importPathToPrefixTests { 24 if out := importPathToPrefix(tt.in); out != tt.out { 25 t.Errorf("importPathToPrefix(%q) = %q, want %q", tt.in, out, tt.out)
|