Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 377 for 01 (0.02 sec)

  1. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

            assertThrows(NullPointerException.class, () -> checkNotNull(null, FORMAT, 5));
        verifyComplexMessage(expected);
      }
    
      public void testCheckElementIndex_ok() {
        assertEquals(0, checkElementIndex(0, 1));
        assertEquals(0, checkElementIndex(0, 2));
        assertEquals(1, checkElementIndex(1, 2));
      }
    
      public void testCheckElementIndex_badSize() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/PreconditionsTest.java

            assertThrows(NullPointerException.class, () -> checkNotNull(null, FORMAT, 5));
        verifyComplexMessage(expected);
      }
    
      public void testCheckElementIndex_ok() {
        assertEquals(0, checkElementIndex(0, 1));
        assertEquals(0, checkElementIndex(0, 2));
        assertEquals(1, checkElementIndex(1, 2));
      }
    
      public void testCheckElementIndex_badSize() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/CharSourceTester.java

                    return list;
                  }
                });
    
        if (expectedLines.isEmpty()) {
          assertTrue(list.isEmpty());
        } else {
          assertEquals(expectedLines.subList(0, 1), list);
        }
      }
    
      private void assertExpectedString(String string) {
        assertEquals(expected, string);
      }
    
      private void assertExpectedLines(List<String> list) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java

                assertEquals(200, responseData.getHttpStatusCode());
            } finally {
                server.stop();
            }
        }
    
        public void test_parseLastModified() {
            final String value = "Mon, 01 Jun 2009 21:02:45 GMT";
            final Date date = httpClient.parseLastModifiedDate(value);
            assertNotNull(date);
        }
    
        public void test_processRobotsTxt() {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/rdma/RdmaErrorHandler.java

                    return true;
                }
            }
    
            // If we've had many errors, consider fallback
            double errorRate = statistics.getErrorRate();
            if (errorRate > 0.1) { // More than 10% error rate
                log.warn("High RDMA error rate ({:.1f}%), TCP fallback recommended", errorRate * 100);
                return true;
            }
    
            return false;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            assertEquals(0, result);
    
            // Test with negative length (should still return 0)
            result = response.readParametersWireFormat(smallBuffer, 0, -1);
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test command type is correct")
        void testCommandType() {
            // Verify that the command is not set in constructor (defaults to 0)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  7. cmd/erasure-healing-common.go

    		return etag
    	}
    	return ""
    }
    
    // Beginning of unix time is treated as sentinel value here.
    var (
    	timeSentinel     = time.Unix(0, 0).UTC()
    	timeSentinel1970 = time.Unix(0, 1).UTC() // 1970 used for special cases when xlmeta.version == 0
    )
    
    // Boot modTimes up to disk count, setting the value to time sentinel.
    func bootModtimes(diskCount int) []time.Time {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 12K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/DoublesTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testEnsureCapacity() {
        assertThat(Doubles.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
        assertThat(Doubles.ensureCapacity(ARRAY1, 0, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Doubles.ensureCapacity(ARRAY1, 1, 1)).isSameInstanceAs(ARRAY1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/ShortsTest.java

        }
      }
    
      public void testEnsureCapacity() {
        assertThat(Shorts.ensureCapacity(EMPTY, 0, 1)).isSameInstanceAs(EMPTY);
        assertThat(Shorts.ensureCapacity(ARRAY1, 0, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Shorts.ensureCapacity(ARRAY1, 1, 1)).isSameInstanceAs(ARRAY1);
        assertThat(Shorts.ensureCapacity(ARRAY1, 2, 1))
            .isEqualTo(new short[] {(short) 1, (short) 0, (short) 0});
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  10. src/bufio/bufio_test.go

    	expect error
    }
    
    func (w errorWriterTest) Write(p []byte) (int, error) {
    	return len(p) * w.n / w.m, w.err
    }
    
    var errorWriterTests = []errorWriterTest{
    	{0, 1, nil, io.ErrShortWrite},
    	{1, 2, nil, io.ErrShortWrite},
    	{1, 1, nil, nil},
    	{0, 1, io.ErrClosedPipe, io.ErrClosedPipe},
    	{1, 2, io.ErrClosedPipe, io.ErrClosedPipe},
    	{1, 1, io.ErrClosedPipe, io.ErrClosedPipe},
    }
    
    func TestWriteErrors(t *testing.T) {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Feb 07 01:08:54 UTC 2025
    - 51.6K bytes
    - Viewed (0)
Back to top