- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for test_error (0.23 sec)
-
src/archive/tar/reader_test.go
} case testWriteTo: f := &testFile{ops: tf.ops} got, err := fr.WriteTo(f) if _, ok := err.(testError); ok { t.Errorf("test %d.%d, WriteTo(): %v", i, j, err) } else if got != tf.wantCnt || err != tf.wantErr { t.Errorf("test %d.%d, WriteTo() = (%d, %v), want (%d, %v)", i, j, got, err, tf.wantCnt, tf.wantErr)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Nov 21 21:14:38 GMT 2022 - 47.1K bytes - Viewed (0) -
src/bufio/scan_test.go
const text = "abcdefghijklmn\nopqrstuvwxyz\n\r" lines := []string{ "abcdefghijklmn", "opqrstuvwxyz", "", } testNoNewline(text, lines, t) } var testError = errors.New("testError") // Test the correct error is returned when the split function errors out. func TestSplitError(t *testing.T) { // Create a split function that delivers a little data, then a predictable error.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Sep 22 16:22:42 GMT 2023 - 14.3K bytes - Viewed (0) -
src/archive/tar/tar_test.go
package tar import ( "bytes" "errors" "fmt" "internal/testenv" "io" "io/fs" "math" "os" "path" "path/filepath" "reflect" "strings" "testing" "time" ) type testError struct{ error } type fileOps []any // []T where T is (string | int64) // testFile is an io.ReadWriteSeeker where the IO operations performed // on it must match the list of operations in ops. type testFile struct {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 24K bytes - Viewed (0) -
src/archive/tar/writer_test.go
t.Fatalf("test %d, Write() = (%d, %v), want (%d, %v)", i, got, err, tf.wantCnt, tf.wantErr) } case testReadFrom: f := &testFile{ops: tf.ops} got, err := tw.readFrom(f) if _, ok := err.(testError); ok { t.Errorf("test %d, ReadFrom(): %v", i, err) } else if got != tf.wantCnt || !equalError(err, tf.wantErr) { t.Errorf("test %d, ReadFrom() = (%d, %v), want (%d, %v)", i, got, err, tf.wantCnt, tf.wantErr)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Feb 27 16:39:23 GMT 2024 - 38.7K bytes - Viewed (0) -
src/cmd/asm/internal/asm/endtoend_test.go
if goarm == 6 { testEndToEnd(t, "arm", "armv6") } } } func TestGoBuildErrors(t *testing.T) { testErrors(t, "amd64", "buildtagerror") } func TestGenericErrors(t *testing.T) { testErrors(t, "amd64", "duperror") } func TestARMErrors(t *testing.T) { testErrors(t, "arm", "armerror") } func TestARM64EndToEnd(t *testing.T) { testEndToEnd(t, "arm64", "arm64") }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Dec 07 18:42:59 GMT 2023 - 11.6K bytes - Viewed (0)