Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 49 for length_is (0.06 sec)

  1. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            assertArrayEquals(pathBytes, actualPath);
        }
    
        @Test
        @DisplayName("Should verify size8 alignment calculation")
        void testSize8Alignment() throws Exception {
            // Given - Various path lengths to test alignment
            String[] paths = { "\\\\a\\b", // Short path
                    "\\\\server\\share", // Medium path
                    "\\\\server.domain.com\\longshare" // Long path
            };
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            assertEquals(14, totalWritten); // 4 header + 10 trailer
            assertEquals((byte) SessionServicePacket.SESSION_MESSAGE, dst[0]);
        }
    
        @Test
        @DisplayName("writeWireFormat should handle large lengths correctly")
        void testWriteWireFormatLargeLength() {
            packet.type = SessionServicePacket.SESSION_MESSAGE;
            packet.trailerLength = 0x10000; // Length requiring extended bit
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.cc

                              const void* const* values, const size_t* lengths,
                              int num_values) {
      if (strcmp(attr_name, tensorflow::kColocationAttrName) == 0) {
        desc->colocation_constraints.clear();
        for (int i = 0; i < num_values; ++i) {
          desc->colocation_constraints.emplace(static_cast<const char*>(values[i]),
                                               lengths[i]);
        }
      } else {
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Sat Oct 04 05:55:32 UTC 2025
    - 102.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeTests {
    
            @ParameterizedTest
            @DisplayName("Should calculate correct size for various path lengths")
            @CsvSource({ "'', 4", "'a', 6", "'\\\\', 8", "'\\\\server', 20", "'\\\\server\\share', 32", "'\\\\server\\share\\path', 42",
                    "'\\\\server\\share\\very\\long\\path\\with\\many\\segments', 100" })
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

            int paramWritten = trans2QueryFSInfo.writeParametersWireFormat(paramBuffer, 0);
            int dataWritten = trans2QueryFSInfo.writeDataWireFormat(dataBuffer, 0);
    
            // Verify lengths
            assertEquals(2, setupWritten);
            assertEquals(2, paramWritten);
            assertEquals(0, dataWritten);
    
            // Verify setup content
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

            int paramWritten = trans2SetFileInfo.writeParametersWireFormat(paramBuffer, 0);
            int dataWritten = trans2SetFileInfo.writeDataWireFormat(dataBuffer, 0);
    
            // Verify lengths
            assertEquals(2, setupWritten);
            assertEquals(6, paramWritten);
            assertEquals(56, dataWritten); // 50 + 6 padding
    
            // Verify setup content
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/StringsTest.java

                assertTrue(utf16Bytes.length > 0, "UTF-16LE bytes should not be empty");
                assertNotEquals(utf8Bytes.length, utf16Bytes.length, "Different encodings should produce different lengths");
            }
    
            @ParameterizedTest
            @DisplayName("getBytes should handle various string inputs")
            @NullAndEmptySource
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // When
            boolean isError = response.isErrorResponseStatus();
    
            // Then
            assertFalse(isError);
        }
    
        @DisplayName("Should handle various data lengths")
        @ParameterizedTest
        @CsvSource({ "0, 0", "1, 10", "100, 200", "512, 1024" })
        void testReadBytesWireFormatVariousDataLengths(int dataLength, int dataRemaining) throws Exception {
            // Given
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Equivalence.java

       * Equivalence}.
       *
       * <p>For example, given an {@link Equivalence} for {@link String strings} named {@code equiv}
       * that tests equivalence using their lengths:
       *
       * {@snippet :
       * equiv.wrap("a").equals(equiv.wrap("b")) // true
       * equiv.wrap("a").equals(equiv.wrap("hello")) // false
       * }
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Jul 10 01:47:55 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            assertTrue(lenCap.getAllValues().stream().allMatch(len -> len == 1));
        }
    
        @Test
        @DisplayName("write(short/char/int/long/float/double): correct byte lengths")
        void write_multiByteVariants_lengths() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("rw", false, true, false));
            doNothing().when(raf).write(any(byte[].class), anyInt(), anyInt());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top