- Sort Score
- Num 10 results
- Language All
Results 701 - 710 of 2,280 for Length (0.04 seconds)
-
src/test/java/jcifs/util/InputValidatorTest.java
}) void testInvalidUsernames(String username) { assertThrows(IllegalArgumentException.class, () -> InputValidator.validateUsername(username)); } @Test @DisplayName("Test username length validation") void testUsernameLengthValidation() { String longUsername = "a".repeat(InputValidator.MAX_USERNAME_LENGTH + 1);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 11.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/DosErrorTest.java
// Assert assertNotNull(table, "DOS_ERROR_CODES must not be null"); assertTrue(table.length > 0, "DOS_ERROR_CODES must not be empty"); for (int i = 0; i < table.length; i++) { int[] pair = table[i]; assertNotNull(pair, "row " + i + " must not be null"); assertEquals(2, pair.length, "row " + i + " must be [dos, ntstatus]"); } } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java
try { var cls = target.getClass(); // Build proper parameter types array, handling primitive types Class<?>[] paramTypes = new Class<?>[params.length]; for (int i = 0; i < params.length; i++) { if (params[i] instanceof byte[]) { paramTypes[i] = byte[].class; } else if (params[i] instanceof Integer) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.4K bytes - Click Count (0) -
cmd/metrics-v3-logger-webhook.go
webhookFailedMessagesMD = NewCounterMD(webhookFailedMessages, "Number of messages that failed to send", allWebhookLabels...) webhookQueueLengthMD = NewGaugeMD(webhookQueueLength, "Webhook queue length", allWebhookLabels...) webhookTotalMessagesMD = NewCounterMD(webhookTotalMessages, "Total number of messages sent to this target", allWebhookLabels...) )
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue May 14 07:27:33 GMT 2024 - 2K bytes - Click Count (0) -
cmd/xl-storage.go
rotational bool walkMu *sync.Mutex walkReadMu *sync.Mutex } // checkPathLength - returns error if given path name length more than 255 func checkPathLength(pathName string) error { // Apple OS X path length is limited to 1016 if runtime.GOOS == "darwin" && len(pathName) > 1016 { return errFileNameTooLong } // Disallow more than 1024 characters on windows, there
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 91.7K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java
byte[] dst = new byte[expectedBytes.length]; int dstIndex = 0; // Execute the method to write bytes int bytesWritten = smbComNegotiate.writeBytesWireFormat(dst, dstIndex); // Verify the number of bytes written assertEquals(expectedBytes.length, bytesWritten, "The number of bytes written should match the length of the dialect string.");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
long expectedLength = 1024L; when(smbFile.length()).thenReturn(expectedLength); assertEquals(expectedLength, smbRandomAccessFile.length()); } @Test void testSetLength() throws SmbException { long newLength = 2048L; smbRandomAccessFile.setLength(newLength); // Verify length was set (actual behavior depends on implementation) } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
} @Test @DisplayName("length(): delegates to SmbFile.length()") void length_delegates() throws Exception { SmbRandomAccessFile raf = newInstance("r", false, false, false); SmbFile file = (SmbFile) getField(raf, "file"); when(file.length()).thenReturn(42L); assertEquals(42L, raf.length()); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt
pattern.startsWith("**.") -> { // With ** empty prefixes match so exclude the dot from regionMatches(). val suffixLength = pattern.length - 3 val prefixLength = hostname.length - suffixLength hostname.regionMatches(hostname.length - suffixLength, pattern, 3, suffixLength) && (prefixLength == 0 || hostname[prefixLength - 1] == '.') } pattern.startsWith("*.") -> {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 14.2K bytes - Click Count (1) -
src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java
assertTrue(s.endsWith("]"), "expected suffix ] but got " + s); String inner = s.substring("SmbComLogoffAndX[".length(), s.length() - 1); assertFalse(inner.isEmpty(), "inner part of toString should not be empty"); } @Test @DisplayName("constructor sets correct command value") void constructorSetsCorrectCommand() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.8K bytes - Click Count (0)