Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 475 for rounds (0.07 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

        return multiset(ImmutableMap.of(value1, count1, value2, count2));
      }
    
      private static <T> ImmutableMultiset<T> multiset(Map<T, Integer> counts) {
        ImmutableMultiset.Builder<T> builder = ImmutableMultiset.builder();
        for (Entry<T, Integer> entry : counts.entrySet()) {
          builder.addCopies(entry.getKey(), entry.getValue());
        }
        return builder.build();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

        return multiset(ImmutableMap.of(value1, count1, value2, count2));
      }
    
      private static <T> ImmutableMultiset<T> multiset(Map<T, Integer> counts) {
        ImmutableMultiset.Builder<T> builder = ImmutableMultiset.builder();
        for (Entry<T, Integer> entry : counts.entrySet()) {
          builder.addCopies(entry.getKey(), entry.getValue());
        }
        return builder.build();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java

            ChannelInfo first = loadBalancer.selectChannel(mockMessage);
            ChannelInfo second = loadBalancer.selectChannel(mockMessage);
    
            assertNotNull(first);
            assertNotNull(second);
            // Due to round-robin, should get different channels or same order
            assertTrue(Arrays.asList(channel1, channel2).contains(first));
            assertTrue(Arrays.asList(channel1, channel2).contains(second));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/EncdecTest.java

            // Then
            String decoded = new String(buffer);
            assertEquals(testString, decoded);
        }
    
        @Test
        @DisplayName("Should handle buffer bounds checking")
        void testBufferBounds() {
            // Given
            byte[] smallBuffer = new byte[2];
    
            // When/Then
            assertThrows(IndexOutOfBoundsException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

        }
    
        /**
         * Test getMessageByDcerpcError() with an error code larger than any known.
         * The binary search implementation has a bug where it accesses array out of bounds.
         */
        @Test
        void testGetMessageByDcerpcError_largerThanAny() {
            int unknownCode = 0x7FFFFFFF; // Max int value
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionTest.java

            assertEquals(0, dst[35], "Reserved byte should be 0");
        }
    
        @Test
        void testWriteParameterWordsWireFormat_ZeroCounts() {
            // Test with zero parameter and data counts to check conditional logic.
            smbComNtTransaction.command = ServerMessageBlock.SMB_COM_NT_TRANSACT;
            smbComNtTransaction.parameterCount = 0;
            smbComNtTransaction.dataCount = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/netbios/NameServiceClientImpl.java

         */
        private boolean isBroadcastAddress(final InetAddress svr) {
            return svr.equals(this.baddr) || svr.getAddress()[3] == (byte) 0xFF;
        }
    
        /**
         * Switches to the next available WINS server in round-robin fashion.
         *
         * @return the next WINS server address, or null if no WINS servers are configured
         */
        protected InetAddress switchWINS() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/RelationshipTester.java

      interface ItemReporter {
        String reportItem(Item<?> item);
      }
    
      /**
       * A word about using {@link Equivalence}, which automatically checks for {@code null} and
       * identical inputs: This sounds like it ought to be a problem here, since the goals of this class
       * include testing that {@code equals()} is reflexive and is tolerant of {@code null}. However,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Java8Compatibility.java

     * the License.
     */
    
    package com.google.common.hash;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.nio.Buffer;
    
    /**
     * Wrappers around {@link Buffer} methods that are covariantly overridden in Java 9+. See
     * https://github.com/google/guava/issues/3990
     */
    @GwtIncompatible
    final class Java8Compatibility {
      static void clear(Buffer b) {
        b.clear();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java

            // getLastWriteTime returns lastWriteTime (from readUTime) + serverTimeZoneOffset
            // readUTime multiplies the seconds value by 1000, and writeUTime divides milliseconds by 1000
            // So the round-trip should preserve the milliseconds value
            assertEquals(sampleTimeMillis + serverTimeZoneOffset, response.getLastWriteTime());
            assertEquals(1024, response.getSize());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
Back to top