Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 55 for Ints (0.02 seconds)

  1. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java

         * All wire‑format methods should return zero regardless of inputs.
         */
        @Nested
        @DisplayName("Wire format method behaviour")
        class WireFormatMethods {
            @ParameterizedTest
            @ValueSource(ints = { 0, 1, -1, Integer.MAX_VALUE, Integer.MIN_VALUE })
            @DisplayName("writeSetupWireFormat returns 0 for all indices")
            void writeSetupWireFormatReturnsZero(int index) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/primitives/IntArrayAsListTest.java

                ListTestSuiteBuilder.using(new IntsAsListTailSubListGenerator())
                    .named("Ints.asList, tail subList"),
                ListTestSuiteBuilder.using(new IntsAsListMiddleSubListGenerator())
                    .named("Ints.asList, middle subList"));
    
        TestSuite suite = new TestSuite();
        for (ListTestSuiteBuilder<Integer> builder : builders) {
          suite.addTest(
              builder
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java

        void constructorWithNullAndx() {
            SmbComLogoffAndX msg = new SmbComLogoffAndX(null);
            assertNotNull(msg, "Message must not be null after construction");
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 5, -1, 10 })
        @DisplayName("writeParameterWordsWireFormat always returns 0")
        void writeParameterWordsWireFormatReturnsZero(int index) {
            SmbComLogoffAndX msg = new SmbComLogoffAndX(null);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java

            @DisplayName("Returns 0 with null array")
            void nullArray() {
                assertEquals(0, response.writeParameterWordsWireFormat(null, 0));
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 5, 9 })
            @DisplayName("Returns 0 with valid array and various indices")
            void nonNullArray(int index) {
                byte[] arr = new byte[10];
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  5. build-logic-commons/basics/src/main/kotlin/gradlebuild.minify.gradle.kts

            // For Java compilation incremental analysis
            "it.unimi.dsi.fastutil.ints.IntOpenHashSet",
            "it.unimi.dsi.fastutil.ints.IntSets",
            // For the embedded Kotlin compiler
            "it.unimi.dsi.fastutil.ints.Int2ObjectMap",
            "it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap",
            "it.unimi.dsi.fastutil.objects.Object2IntMap",
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Dec 25 16:18:05 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/Hashing.java

    import com.google.common.primitives.Ints;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Static methods for implementing hash-based collections.
     *
     * @author Kevin Bourrillion
     * @author Jesse Wilson
     * @author Austin Appleby
     */
    @GwtCompatible
    final class Hashing {
      private Hashing() {}
    
      /*
       * These should be ints, but we need to use longs to force GWT to do the multiplications with
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/Hashing.java

    import com.google.common.primitives.Ints;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Static methods for implementing hash-based collections.
     *
     * @author Kevin Bourrillion
     * @author Jesse Wilson
     * @author Austin Appleby
     */
    @GwtCompatible
    final class Hashing {
      private Hashing() {}
    
      /*
       * These should be ints, but we need to use longs to force GWT to do the multiplications with
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  8. android/guava-tests/benchmark/com/google/common/math/IntMathRoundingBenchmark.java

      private static final int[] nonzero = new int[ARRAY_SIZE];
      private static final int[] ints = new int[ARRAY_SIZE];
    
      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          positive[i] = randomPositiveBigInteger(Integer.SIZE - 2).intValue();
          nonzero[i] = randomNonZeroBigInteger(Integer.SIZE - 2).intValue();
          ints[i] = RANDOM_SOURCE.nextInt();
        }
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.6K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

            assertNotNull(resp, "Response instance should be created");
        }
    
        @Nested
        @DisplayName("writeBytesWireFormat")
        class WriteBytesWireFormat {
    
            @ParameterizedTest
            @ValueSource(ints = { -10, -1, 0, 1, 42 })
            @DisplayName("Returns 0 regardless of dst and index")
            void returnsZero_forVariousIndexes(int index) {
                // Arrange
                Smb2LogoffResponse resp = newResponse();
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

        }
    
        /**
         * Validate that the constructor masks the supplied value to its
         * lowest 8 bits (NdrShort incorrectly masks to 8 bits even though it's a short).
         */
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 255, -1, 256, 65535 })
        void constructorMasksValue(int input) {
            NdrShort ns = new NdrShort(input);
            // NdrShort masks to 0xFF (8 bits) in its constructor
            int expected = input & 0xFF;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.1K bytes
    - Click Count (0)
Back to Top