- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for TestError (0.05 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 Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
void testRenewCredentials_True() { // Test renewCredentials(String locationHint, Throwable error) method when true String locationHint = "testLocation"; Throwable error = new RuntimeException("testError"); when(mockDelegate.renewCredentials(locationHint, error)).thenReturn(true); assertTrue(cifsContextWrapper.renewCredentials(locationHint, error));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/log/LoggerTest.java
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K 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 Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 23.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/SystemHelperTest.java
} public void test_addUpdateConfigListener_withException() { systemHelper.addUpdateConfigListener("TestError", () -> { throw new RuntimeException("Test error"); }); final String result = systemHelper.updateConfiguration(); assertTrue(result.contains("TestError:")); assertTrue(result.contains("Test error")); } public void test_getFilteredEnvMap_emptyKey() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 28.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
assertTrue(response.isReceived()); assertSame(testException, response.getException()); } @Test @DisplayName("Should handle error") void testError() throws InterruptedException { CountDownLatch latch = new CountDownLatch(1); Thread waiter = new Thread(() -> { synchronized (response) { try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.3K 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 Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Feb 03 16:38:43 UTC 2025 - 39.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K 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 Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 34.9K bytes - Viewed (0)