- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for testError (0.1 sec)
-
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.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/log/LoggerTest.java
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.8K bytes - Viewed (0) -
src/archive/tar/tar_test.go
import ( "bytes" "errors" "fmt" "internal/testenv" "io" "io/fs" "maps" "math" "os" "path" "path/filepath" "reflect" "slices" "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 {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 23.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java
failureUrl.setId("E" + i); failureUrl.setUrl("http://test.com/" + i + ".html"); failureUrl.setErrorCount(i); failureUrl.setErrorName("TestError" + i); list.add(failureUrl); } return list; } }, FailureUrlBhv.class.getCanonicalName());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 23.2K 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)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 39.4K bytes - Viewed (0) -
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)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_test.go
t.Errorf("Write error: got %T, want testError1", err) } rb.CloseWithError(testError2{}) if _, err := rb.Write(nil); err != (testError1{}) { t.Errorf("Write error: got %T, want testError1", err) } rb.Reset() rb.CloseWithError(testError1{}) if _, err := rb.Read(nil); err != (testError1{}) { t.Errorf("Read error: got %T, want testError1", err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 26.8K 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") }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Dec 07 18:42:59 UTC 2023 - 11.6K bytes - Viewed (0) -
internal/rest/client.go
url *url.URL auth func() string sync.RWMutex // mutex for lastErr lastErr error lastErrTime time.Time } type restError string func (e restError) Error() string { return string(e) } func (e restError) Timeout() bool { return true } // Given a string of the form "host", "host:port", or "[ipv6::address]:port", // return true if the string includes a port.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 26 12:55:01 UTC 2024 - 14.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloserTest.java
assertTrue(c2.isClosed()); assertSuppressed( new Suppression(c2, tryException, c2Exception), new Suppression(c1, tryException, c1Exception)); } public void testErrors() throws IOException { Closer closer = new Closer(suppressor); Error c1Exception = new Error(); Error c2Exception = new Error(); Error c3Exception = new Error();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 11.8K bytes - Viewed (0)