- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for wantErr (0.07 sec)
-
src/archive/tar/reader_test.go
} func TestFileReader(t *testing.T) { type ( testRead struct { // Read(cnt) == (wantStr, wantErr) cnt int wantStr string wantErr error } testWriteTo struct { // WriteTo(testFile{ops}) == (wantCnt, wantErr) ops fileOps wantCnt int64 wantErr error } testRemaining struct { // logicalRemaining() == wantLCnt, physicalRemaining() == wantPCnt
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Mon Dec 15 16:34:13 UTC 2025 - 47.5K bytes - Viewed (0) -
schema/serializer_test.go
wantErr: false, }, { name: "invalid type", value: "invalid", want: nil, wantErr: true, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got, err := UnixSecondSerializer{}.Value(context.Background(), nil, reflect.Value{}, tt.value) if (err != nil) != tt.wantErr { t.Fatalf("UnixSecondSerializer.Value() error = %v, wantErr %v", err, tt.wantErr) }Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Oct 26 12:29:44 UTC 2025 - 4.8K bytes - Viewed (0) -
src/archive/tar/writer_test.go
type ( testHeader struct { // WriteHeader(hdr) == wantErr hdr Header wantErr error } testWrite struct { // Write(str) == (wantCnt, wantErr) str string wantCnt int wantErr error } testReadFrom struct { // ReadFrom(testFile{ops}) == (wantCnt, wantErr) ops fileOps wantCnt int64 wantErr error } testClose struct { // Close() == wantErr wantErr error }
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Mon Dec 15 16:34:13 UTC 2025 - 40.2K bytes - Viewed (0) -
src/archive/zip/reader_test.go
if err != nil { if !test.wantErr { t.Errorf("%s: %v", path, err) } sawErr = true return nil } files = append(files, path) return nil }) if err != nil { t.Errorf("fs.WalkDir error: %v", err) } if test.wantErr && !sawErr { t.Error("succeeded but want error") } else if !test.wantErr && sawErr { t.Error("unexpected error")Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Fri Oct 17 20:10:27 UTC 2025 - 56.5K bytes - Viewed (0)