- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for wantErr (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Dec 15 16:34:13 GMT 2025 - 47.5K bytes - Click Count (0) -
cmd/postpolicyform_test.go
fv formValues expired bool wantErr string } // Test case just contains fields we override from defaultFormVals. testCases := []testCase{ { name: "happy path no errors", fv: defaultFormVals.Clone(), wantErr: "", }, { name: "expired policy document", fv: defaultFormVals.Clone(), expired: true, wantErr: "Invalid according to Policy: Policy expired",Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 12.3K bytes - Click Count (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 }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Dec 15 16:34:13 GMT 2025 - 40.2K bytes - Click Count (0) -
internal/s3select/csv/reader_contrib_test.go
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 38.4K bytes - Click Count (0) -
src/archive/zip/zip_test.go
func TestHeaderTooLongErr(t *testing.T) { var headerTests = []struct { name string extra []byte wanterr error }{ { name: strings.Repeat("x", 1<<16), extra: []byte{}, wanterr: errLongName, }, { name: "long_extra", extra: bytes.Repeat([]byte{0xff}, 1<<16), wanterr: errLongExtra, }, } // write a zip file buf := new(bytes.Buffer) w := NewWriter(buf)
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu May 23 01:00:11 GMT 2024 - 19.6K bytes - Click Count (0)