Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for testIndex (0.37 seconds)

  1. guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testToMap_nullValue() {
        assertThrows(NullPointerException.class, () -> fluent(1, 2, 3).toMap(Functions.constant(null)));
      }
    
      public void testIndex() {
        ImmutableListMultimap<Integer, String> expected =
            ImmutableListMultimap.<Integer, String>builder()
                .putAll(3, "one", "two")
                .put(5, "three")
                .put(4, "four")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 31.2K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        multimap.putAll(Color.RED, asList(2, 7, 1, 8));
        SerializableTester.reserializeAndAssert(multimap);
        assertEquals(INT_COMPARATOR, multimap.valueComparator());
      }
    
      public void testIndex() {
        Multimap<String, Object> stringToObject =
            new ImmutableMultimap.Builder<String, Object>()
                .put("1", 1)
                .put("1", 1L)
                .put("1", "1")
                .put("2", 2)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 39.2K bytes
    - Click Count (0)
  3. src/bytes/bytes_test.go

    	for _, test := range testCases {
    		a := []byte(test.a)
    		actual := f(a, test.b)
    		if actual != test.i {
    			t.Errorf("%s(%q,%q) = %v; want %v", funcName, a, test.b, actual, test.i)
    		}
    	}
    }
    
    func TestIndex(t *testing.T)     { runIndexTests(t, Index, "Index", indexTests) }
    func TestLastIndex(t *testing.T) { runIndexTests(t, LastIndex, "LastIndex", lastIndexTests) }
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Mar 11 03:07:05 GMT 2026
    - 62.9K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/escape/UnicodeEscaper.java

        if (charsSkipped > 0) {
          int endIndex = destIndex + charsSkipped;
          if (dest.length < endIndex) {
            dest = growBuffer(dest, destIndex, endIndex);
          }
          s.getChars(unescapedChunkStart, end, dest, destIndex);
          destIndex = endIndex;
        }
        return new String(dest, 0, destIndex);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 24 04:06:11 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  5. src/test/java/jcifs/util/ByteEncodableTest.java

            byte[] dest = new byte[5];
    
            // Expect IndexOutOfBoundsException from System.arraycopy
            assertThrows(IndexOutOfBoundsException.class, () -> {
                encodable.encode(dest, 3); // destIndex=3, len=3, dest.length=5. 3+3 > 5
            }, "Should throw IndexOutOfBoundsException if destination offset + length exceeds destination array bounds");
        }
    
        @Test
        void testEncodeNullSourceArray() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/util/SearchEngineUtilTest.java

            try {
                // This will likely fail due to missing SearchEngineClient setup,
                // but we can verify the method signature and basic functionality
                SearchEngineUtil.scroll("test_index", hit -> {
                    callbackCount.incrementAndGet();
                    return true; // Continue processing
                });
            } catch (Exception e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13.8K bytes
    - Click Count (0)
Back to Top