- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for wantnil (0.14 sec)
-
src/database/sql/convert_test.go
} if ct.wantraw != nil && string(ct.wantraw) != string(scanraw) { errf("want RawBytes %q, got %q", ct.wantraw, scanraw) } if ct.wantint != 0 && ct.wantint != intValue(ct.d) { errf("want int %d, got %d", ct.wantint, intValue(ct.d)) } if ct.wantuint != 0 && ct.wantuint != uintValue(ct.d) { errf("want uint %d, got %d", ct.wantuint, uintValue(ct.d)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 10 20:23:22 UTC 2024 - 17K bytes - Viewed (0) -
src/go/format/format_test.go
gotLit := file.Decls[0].(*ast.GenDecl).Specs[0].(*ast.ValueSpec).Values[0].(*ast.BasicLit) gotVal := gotLit.Value if gotLit != wantLit { t.Errorf("got *ast.BasicLit address %p, want %p", gotLit, wantLit) } if gotVal != wantVal { t.Errorf("got *ast.BasicLit value %q, want %q", gotVal, wantVal) } } func TestSource(t *testing.T) { src, err := os.ReadFile(testfile) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 20 03:54:46 UTC 2021 - 4.5K bytes - Viewed (0) -
src/cmd/internal/obj/arm64/asm_arm64_test.go
v: 0xfe, shift: 1, wantHi: 0x0, wantLo: 0x7f, }, { v: 0x10fe, shift: 1, wantHi: 0x0, wantLo: 0x87f, }, { v: 0x2002, shift: 1, wantHi: 0x2000, wantLo: 0x1, }, { v: 0xfffffe, shift: 1, wantHi: 0xffe000, wantLo: 0xfff, }, { v: 0x1000ffe, shift: 1, wantHi: 0xfff000, wantLo: 0xfff,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 02:46:11 UTC 2023 - 7.8K bytes - Viewed (0) -
src/io/fs/readdir_test.go
Mode: os.ModeDir, ModTime: time.Now(), Sys: &sysValue, }, } tests := []struct { path string wantMode FileMode wantDir bool }{ {path: "notadir.txt", wantMode: 0, wantDir: false}, {path: "adir", wantMode: os.ModeDir, wantDir: true}, } for _, test := range tests { test := test t.Run(test.path, func(t *testing.T) { fi, err := Stat(testFs, test.path) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 16:25:41 UTC 2023 - 2.6K bytes - Viewed (0) -
src/iter/pull_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 10.2K bytes - Viewed (0) -
src/go/internal/gccgoimporter/importer_test.go
{pkgpath: "complexnums", name: "NP", want: "const NP untyped complex", wantval: "(-1 + 1i)"}, {pkgpath: "complexnums", name: "PN", want: "const PN untyped complex", wantval: "(1 + -1i)"}, {pkgpath: "complexnums", name: "PP", want: "const PP untyped complex", wantval: "(1 + 1i)"}, {pkgpath: "conversions", name: "Bits", want: "const Bits Units", wantval: `"bits"`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:17:57 UTC 2022 - 7.2K bytes - Viewed (0) -
internal/s3select/sql/value_test.go
}, wantVal: true, wantOk: true, }, { name: "f", fields: fields{ value: []byte("f"), }, wantVal: false, wantOk: true, }, { name: "1", fields: fields{ value: []byte("1"), }, wantVal: true, wantOk: true, }, { name: "0", fields: fields{ value: []byte("0"), }, wantVal: false,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 12.5K bytes - Viewed (0) -
src/net/http/transport_dial_test.go
// First request creates a new connection. rt1 := dt.roundTrip() c1 := dt.wantDial() c1.finish(nil) rt1.wantDone(c1) // Second request is made while the first request is still using its connection, // so it goes on a new connection. rt2 := dt.roundTrip() c2 := dt.wantDial() c2.finish(nil) rt2.wantDone(c2) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:11:57 UTC 2024 - 6.3K bytes - Viewed (0) -
src/cmd/go/internal/web/url_test.go
if tc.wantErr != "" { t.Fatalf("urlFromFilePath(%v) = <nil>; want error: %s", tc.filePath, tc.wantErr) } wantURL := tc.url if tc.canonicalURL != "" { wantURL = tc.canonicalURL } if u.String() != wantURL { t.Errorf("urlFromFilePath(%v) = %v; want %s", tc.filePath, u, wantURL) } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:43:51 UTC 2019 - 1.7K bytes - Viewed (0) -
src/slices/sort_test.go
t.Run(fmt.Sprintf("%v", tt.data), func(t *testing.T) { gotMin := Min(tt.data) if gotMin != tt.wantMin { t.Errorf("Min got %v, want %v", gotMin, tt.wantMin) } gotMinFunc := MinFunc(tt.data, intCmp) if gotMinFunc != tt.wantMin { t.Errorf("MinFunc got %v, want %v", gotMinFunc, tt.wantMin) } gotMax := Max(tt.data) if gotMax != tt.wantMax {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 19:20:55 UTC 2024 - 9.5K bytes - Viewed (0)