Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for testSlice (0.32 seconds)

  1. guava-tests/test/com/google/common/io/ByteSourceTest.java

        byte[] copy = bytes.clone();
        copy[9876] = 1;
        ByteSource oneByteOff = new TestByteSource(copy);
        assertFalse(source.contentEquals(oneByteOff));
      }
    
      public void testSlice() throws IOException {
        // Test preconditions
        assertThrows(IllegalArgumentException.class, () -> source.slice(-1, 10));
    
        assertThrows(IllegalArgumentException.class, () -> source.slice(0, -1));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        byte[] copy = bytes.clone();
        copy[9876] = 1;
        ByteSource oneByteOff = new TestByteSource(copy);
        assertFalse(source.contentEquals(oneByteOff));
      }
    
      public void testSlice() throws IOException {
        // Test preconditions
        assertThrows(IllegalArgumentException.class, () -> source.slice(-1, 10));
    
        assertThrows(IllegalArgumentException.class, () -> source.slice(0, -1));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SSPContextTest.java

            }
    
            @ParameterizedTest(name = "slice off={1}, len={2}")
            @MethodSource("validRanges")
            void testSlices(byte[] src, int off, int len, byte[] expected) throws Exception {
                DummySSPContext ctx = new DummySSPContext(new byte[] { 9 }, false, null, null, 0, false);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.2K bytes
    - Click Count (0)
Back to Top