- Sort Score
- Result 10 results
- Languages All
Results 391 - 400 of 558 for 1004 (0.06 sec)
-
guava-tests/test/com/google/common/collect/HashBiMapTest.java
HashBiMap<String, String> bimap = HashBiMap.create(map); assertEquals("dollar", bimap.get("canada")); assertEquals("canada", bimap.inverse().get("dollar")); } private static final int N = 1000; public void testBashIt() throws Exception { BiMap<Integer, Integer> bimap = HashBiMap.create(N); BiMap<Integer, Integer> inverse = bimap.inverse(); for (int i = 0; i < N; i++) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 8.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
// passes, and there is still a little endianness bug lurking around. } } Control control = new Control(); Hasher controlSink = control.newHasher(1024); Iterable<Hasher> sinksAndControl = Iterables.concat(sinks, Collections.singleton(controlSink)); for (int insertion = 0; insertion < totalInsertions; insertion++) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 8.6K bytes - Viewed (0) -
cmd/xl-storage_test.go
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 66K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java
// Arrange byte[] largeData = new byte[1000]; for (int i = 0; i < largeData.length; i++) { largeData[i] = (byte) (i % 256); } int offset = 990; int length = 10; TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, largeData, offset, length); byte[] dst = new byte[100]; // ActRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java
manager.stopAsync().awaitStopped(); } }; stoppingThread.start(); // this should be super fast since the only non-stopped service is a NoOpService stoppingThread.join(1000); assertFalse("stopAsync has deadlocked!.", stoppingThread.isAlive()); failLeave.countDown(); // release the background thread } /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 17:49:12 UTC 2025 - 25.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/IntMathTest.java
// Check the first 100,000 integers for (int i = 0; i < 100000; i++) { assertEquals(LongMath.isPrime(i), IntMath.isPrime(i)); } // Then check 1000 deterministic pseudo-random int values. Random rand = new Random(1); for (int i = 0; i < 1000; i++) { int n = rand.nextInt(Integer.MAX_VALUE); assertEquals(LongMath.isPrime(n), IntMath.isPrime(n)); } }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 24.1K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
@Test public void testLargeThreshold() throws IOException { // Test with very large threshold ContentOutputStream cos = new ContentOutputStream(1024 * 1024, Curl.tmpDir); cos.write(new byte[1000]); assertTrue(cos.isInMemory()); cos.close(); } @Test public void testMultipleGetFile() throws IOException { // Calling getFile() multiple times should return the same fileRegistered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Wed Nov 12 14:01:04 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
// Test toString String str = fileInfoWithEof.toString(); assertNotNull(str); assertTrue(str.contains("EndOfFileInformation")); assertTrue(str.contains("1024")); } /** * Test FileEndOfFileInformation encode/decode round trip */ @Test @DisplayName("Test FileEndOfFileInformation encode/decode round trip")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java
* * @return interface score */ public int getScore() { int score = linkSpeed; // Base score is link speed if (rssCapable) score += 1000; // Prefer RSS-capable if (rdmaCapable) score += 2000; // Prefer RDMA-capable // Note: No IPv4 preference bonus to keep base score equal to link speed return score; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java
public FailoverState(String channelId) { this.channelId = channelId; this.failureTime = System.currentTimeMillis(); this.retryCount = 0; this.nextRetryTime = failureTime + 1000; // Initial 1 second delay } /** * Get channel ID * * @return channel identifier */ public String getChannelId() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 11.6K bytes - Viewed (0)