Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1361 - 1370 of 2,029 for sizeOf (0.03 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

            @DisplayName("Should reject offset+length exceeding buffer size in sign method")
            void testSignOffsetLengthExceedsBuffer() {
                byte[] data = new byte[100];
                assertThrows(IllegalArgumentException.class, () -> digest.sign(data, 50, 60, request, response),
                        "Should throw IllegalArgumentException when offset+length > buffer size");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/FormBodyTest.kt

      fun urlEncoding() {
        val body =
          FormBody
            .Builder()
            .add("a+=& b", "c+=& d")
            .add("space, the", "final frontier")
            .add("%25", "%25")
            .build()
        assertThat(body.size).isEqualTo(3)
        assertThat(body.encodedName(0)).isEqualTo("a%2B%3D%26+b")
        assertThat(body.encodedName(1)).isEqualTo("space%2C+the")
        assertThat(body.encodedName(2)).isEqualTo("%2525")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        for (V element : elements) {
          assertFalse("Should not contain value " + element, getMap().containsValue(element));
        }
      }
    
      /**
       * @return an array of the proper size with {@code null} as the key of the middle element.
       */
      protected Entry<K, V>[] createArrayWithNullKey() {
        Entry<K, V>[] array = createSamplesArray();
        int nullKeyLocation = getNullLocation();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

            int bytesWritten = trans.writeDataWireFormat(dst, dstIndex);
    
            // Assert
            assertEquals(0, bytesWritten);
        }
    
        @Test
        @DisplayName("Test writeDataWireFormat with exact buffer size")
        void testWriteDataWireFormatExactBuffer() {
            // Arrange
            TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt

            frameCallback.onReadPong(controlFrameBuffer.readByteString())
          }
          OPCODE_CONTROL_CLOSE -> {
            var code = CLOSE_NO_STATUS_CODE
            var reason = ""
            val bufferSize = controlFrameBuffer.size
            if (bufferSize == 1L) {
              throw ProtocolException("Malformed close payload length of 1.")
            } else if (bufferSize != 0L) {
              code = controlFrameBuffer.readShort().toInt()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                            }
                          };
                        }
                      };
                    }
    
                    @Override
                    public int size() {
                      return map.size();
                    }
    
                    @Override
                    public boolean remove(Object o) {
                      return map.entrySet().remove(o);
                    }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu May 22 16:18:11 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/FileEntryTest.java

            int attributes = mockEntry.getAttributes();
            long createTime = mockEntry.createTime();
            long lastModified = mockEntry.lastModified();
            long lastAccess = mockEntry.lastAccess();
            long size = mockEntry.length();
    
            // Assert: values and interactions
            assertEquals("file.txt", name, "getName should return stubbed value");
            assertEquals(1, type1);
            assertEquals(1, type2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/SingletonImmutableList.java

        return singletonIterator(element);
      }
    
      @Override
      public Spliterator<E> spliterator() {
        return singleton(element).spliterator();
      }
    
      @Override
      public int size() {
        return 1;
      }
    
      @Override
      public ImmutableList<E> subList(int fromIndex, int toIndex) {
        Preconditions.checkPositionIndexes(fromIndex, toIndex, 1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/artifact/transform/TransformationManagerTest.java

        @Inject
        ArtifactTransformationManager tm;
    
        @Test
        void testTransformationManager() {
            List<ArtifactTransformation> tms = tm.getArtifactTransformations();
    
            assertEquals(3, tms.size());
    
            assertTrue(
                    tms.get(0) instanceof ReleaseArtifactTransformation,
                    "We expected the release transformation and got " + tms.get(0));
    
            assertTrue(
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

        List<Range<C>> asRanges = ImmutableList.copyOf(rangeSet.asRanges());
    
        // test that connected ranges are coalesced
        for (int i = 0; i + 1 < asRanges.size(); i++) {
          Range<C> range1 = asRanges.get(i);
          Range<C> range2 = asRanges.get(i + 1);
          assertFalse(range1.isConnected(range2));
        }
    
        // test that there are no empty ranges
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top