Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 509 for key1 (0.01 sec)

  1. tests/lru_test.go

    	lru := lru.NewLRU[string, int](2, nil, time.Hour)
    	lru.Add("key1", 1)
    	lru.Add("key2", 2)
    	lru.Add("key3", 3)
    
    	if _, ok := lru.Get("key1"); ok {
    		t.Errorf("Expected key1 to be removed, but it still exists")
    	}
    }
    
    func TestLRU_Add_UnlimitedSize_NoEviction(t *testing.T) {
    	lru := lru.NewLRU[string, int](0, nil, time.Hour)
    	lru.Add("key1", 1)
    	lru.Add("key2", 2)
    	lru.Add("key3", 3)
    
    	if _, ok := lru.Get("key1"); !ok {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java

                Smb2LeaseKey key3 = limitedManager.requestLease("/share/file3.txt", Smb2LeaseState.SMB2_LEASE_READ_CACHING);
    
                // key3 should definitely exist (just created)
                assertNotNull(limitedManager.getLease(key3));
    
                // key1 should have been evicted (oldest)
                assertNull(limitedManager.getLease(key1));
    
                // key2 should still exist (not the oldest)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/util/DocumentUtilTest.java

            String expected = "1";
            doc.put("key1", expected);
            assertEquals(expected, DocumentUtil.getValue(doc, "key1", String.class));
            assertEquals(Integer.parseInt(expected), DocumentUtil.getValue(doc, "key1", Integer.class).intValue());
            assertEquals(Long.parseLong(expected), DocumentUtil.getValue(doc, "key1", Long.class).longValue());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/DocMapTest.java

            docMap.put("key1", "value1");
            docMap.put("key2", 123);
            docMap.put("key3", true);
    
            assertEquals(3, docMap.size());
            assertEquals("value1", docMap.get("key1"));
            assertEquals(123, docMap.get("key2"));
            assertEquals(true, docMap.get("key3"));
    
            assertTrue(docMap.containsKey("key1"));
            assertTrue(docMap.containsValue("value1"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/entity/FacetQueryViewTest.java

            facetQueryView.addQuery("key1", "query1");
            assertEquals(1, facetQueryView.getQueryMap().size());
            assertEquals("query1", facetQueryView.getQueryMap().get("key1"));
    
            facetQueryView.addQuery("key2", "query2");
            assertEquals(2, facetQueryView.getQueryMap().size());
            assertEquals("query2", facetQueryView.getQueryMap().get("key2"));
    
            // Test overwriting existing key
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/entity/DataStoreParamsTest.java

        public void test_overwriteValues() {
            dataStoreParams.put("key1", "originalValue");
            assertEquals("originalValue", dataStoreParams.get("key1"));
    
            dataStoreParams.put("key1", "newValue");
            assertEquals("newValue", dataStoreParams.get("key1"));
    
            dataStoreParams.put("key1", null);
            assertNull(dataStoreParams.get("key1"));
        }
    
        // Test multiple operations in sequence
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/util/ParameterUtilTest.java

            // Test with whitespace around keys and values
            value = "  key1  =  value1  \n  key2=value2\n";
            paramMap = ParameterUtil.parse(value);
            assertEquals(2, paramMap.size());
            assertEquals("value1", paramMap.get("key1"));
            assertEquals("value2", paramMap.get("key2"));
    
            // Test with empty lines and mixed whitespace
            value = "key1=value1\n\n\t\nkey2=value2\n \n";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/entity/SearchLogEventTest.java

            sourceMap.put("key1", "value1");
            sourceMap.put("key2", 123);
            sourceMap.put("key3", true);
            event.setSourceMap(sourceMap);
    
            Map<String, Object> result = event.toSource();
            assertNotNull(result);
            assertEquals(3, result.size());
            assertEquals("value1", result.get("key1"));
            assertEquals(123, result.get("key2"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/SecureKeyManagerTest.java

        public void testGenerateRandomKey() {
            byte[] key1 = keyManager.generateRandomKey(32);
            byte[] key2 = keyManager.generateRandomKey(32);
    
            assertNotNull(key1, "Should generate key 1");
            assertNotNull(key2, "Should generate key 2");
            assertEquals(32, key1.length, "Key 1 should have correct length");
            assertEquals(32, key2.length, "Key 2 should have correct length");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/suggest/settings/SuggestSettingsBuilderTest.java

            assertEquals(100, builder.initialSettings.get("key2"));
            assertEquals(true, builder.initialSettings.get("key3"));
    
            // Test overwriting existing setting
            builder.addInitialSettings("key1", "newValue1");
            assertEquals(3, builder.initialSettings.size());
            assertEquals("newValue1", builder.initialSettings.get("key1"));
        }
    
        @Test
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 14.4K bytes
    - Viewed (0)
Back to top