Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 449 for 15000 (0.02 sec)

  1. tests/lru_test.go

    	if lc.Len() != 10 {
    		t.Fatalf("length differs from expected")
    	}
    }
    
    func TestLRUConcurrency(t *testing.T) {
    	lc := lru.NewLRU[string, string](0, nil, 0)
    	wg := sync.WaitGroup{}
    	wg.Add(1000)
    	for i := 0; i < 1000; i++ {
    		go func(i int) {
    			lc.Add(fmt.Sprintf("key-%d", i/10), fmt.Sprintf("val-%d", i/10))
    			wg.Done()
    		}(i)
    	}
    	wg.Wait()
    	if lc.Len() != 100 {
    		t.Fatalf("length differs from expected")
    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/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

         */
        protected int splitSize = 10;
    
        /**
         * Maximum size of the thumbnail generation task queue.
         */
        protected int thumbnailTaskQueueSize = 10000;
    
        /**
         * Number of tasks to process in bulk operations.
         */
        protected int thumbnailTaskBulkSize = 100;
    
        /**
         * Timeout in milliseconds for thumbnail task queue operations.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                // When
                fileFsFullSizeInfo.decode(buffer.array(), 0, 32);
                double percentFree = (fileFsFullSizeInfo.getFree() * 100.0) / fileFsFullSizeInfo.getCapacity();
                double percentUsed =
                        ((fileFsFullSizeInfo.getCapacity() - fileFsFullSizeInfo.getFree()) * 100.0) / fileFsFullSizeInfo.getCapacity();
    
                // Then
                assertEquals(25.0, percentFree, 0.001);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java

            assertEquals(version, artifactVersion.toString(), "check " + version + " string value");
        }
    
        @Test
        void testVersionParsing() {
            checkVersionParsing("1", 1, 0, 0, 0, null);
            checkVersionParsing("1.2", 1, 2, 0, 0, null);
            checkVersionParsing("1.2.3", 1, 2, 3, 0, null);
            checkVersionParsing("1.2.3-1", 1, 2, 3, 1, null);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-utils_test.go

    		Mode:             0,
    		Metadata:         nil,
    		Parts:            nil,
    		Erasure: ErasureInfo{
    			Algorithm:    ReedSolomon.String(),
    			DataBlocks:   4,
    			ParityBlocks: 2,
    			BlockSize:    10000,
    			Index:        1,
    			Distribution: []int{1, 2, 3, 4, 5, 6, 7, 8},
    			Checksums: []ChecksumInfo{{
    				PartNumber: 1,
    				Algorithm:  HighwayHash256S,
    				Hash:       nil,
    			}},
    		},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SIDTest.java

            SID relativeSid = new SID("S-1-5-1000"); // This is not a valid relative SID, but tests the logic
            relativeSid.sub_authority_count = 1;
            relativeSid.sub_authority = new int[] { 1000 };
    
            SID userSid = new SID(domainSid, relativeSid);
            assertEquals(domainSid.sub_authority_count + relativeSid.sub_authority_count, userSid.sub_authority_count);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

        private FileBasicInfo fileBasicInfo;
    
        // Use Unix timestamps (milliseconds since 1970) for test values
        private static final long TEST_CREATE_TIME = System.currentTimeMillis() - 10000;
        private static final long TEST_LAST_ACCESS_TIME = System.currentTimeMillis() - 8000;
        private static final long TEST_LAST_WRITE_TIME = System.currentTimeMillis() - 6000;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/InputValidatorTest.java

        }
    
        @Test
        @DisplayName("Test invalid buffer size validation")
        void testInvalidBufferSize() {
            assertThrows(IllegalArgumentException.class, () -> InputValidator.validateBufferSize(-1, 1000, "test"));
            assertThrows(IllegalArgumentException.class, () -> InputValidator.validateBufferSize(1001, 1000, "test"));
        }
    
        @Test
        @DisplayName("Test SMB2 buffer size validation")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exception/LdapConfigurationExceptionTest.java

            assertNull(exception.getCause());
        }
    
        public void test_constructor_withLongMessage() {
            // Test with a long message
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 1000; i++) {
                sb.append("LDAP configuration error ").append(i).append(" ");
            }
            String longMessage = sb.toString();
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/ScheduledJobExceptionTest.java

        }
    
        public void test_longMessage() {
            // Test with very long message
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 1000; i++) {
                sb.append("Long message part ").append(i).append(" ");
            }
            String longMessage = sb.toString();
    
            ScheduledJobException exception = new ScheduledJobException(longMessage);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top