- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 219 for preserve (0.42 sec)
-
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
assertTrue(ts.contains(ex.getMessage()), "toString should contain the detail message"); } @ParameterizedTest(name = "Message preserved: [{0}]") @MethodSource("messages") @DisplayName("Message constructor preserves provided messages, including null/edge cases") void messageConstructor_preservesMessage(String msg) { // Arrange & Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
docs/debugging/healing-bin/main.go
return err } buf := bytes.NewBuffer(nil) if _, err = msgp.CopyToJSON(buf, bytes.NewReader(b)); err != nil { return err } dec := json.NewDecoder(buf) // Use number to preserve integers. dec.UseNumber() var htr map[string]any if err = dec.Decode(&htr); err != nil { return err } ht[file.Name] = htr } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 3.1K bytes - Viewed (0) -
src/test/java/jcifs/RuntimeCIFSExceptionTest.java
assertEquals("Message", exception.getMessage()); assertNull(exception.getCause()); }); } @Test @DisplayName("Should preserve exception hierarchy") void testExceptionHierarchy() { // When RuntimeCIFSException exception = new RuntimeCIFSException("Test"); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/util/StringsTest.java
assertEquals(original, asciiRoundTrip, "ASCII round-trip should preserve content"); } // Then assertEquals(original, uniRoundTrip, "UNI round-trip should preserve content: " + original); } } @Test @DisplayName("Strings utility class should not be instantiable")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java
// Then assertSame(cause, exception.getCause(), "Crypto cause should be preserved"); assertEquals(cause.toString(), exception.getMessage(), "Message should be cause.toString() when only cause is provided"); } @Test @DisplayName("Message and cause constructor should preserve both crypto parameters") void testMessageAndCauseConstructor() { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/util/PathValidatorTest.java
} @Test public void testCaseInsensitivity() throws Exception { // Windows reserved names should be caught regardless of case try { validator.validatePath("\\share\\con"); fail("Should block lowercase reserved name"); } catch (SmbException e) { // Expected } try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java
assertTrue(e instanceof TransportException); } }); } @Test @DisplayName("Should preserve IOException behavior") void testIOExceptionBehavior() { String message = "IO operation failed"; TransportException exception = new TransportException(message);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java
decodedName.decode(decodeBuffer); // Verify the decoded data matches assertEquals(translatedName.sid_type, decodedName.sid_type); // The decode process doesn't preserve the original length, it reads from the buffer assertNotNull(decodedName.name); assertNotNull(decodedName.name.buffer); // Buffer length is based on maximum_length/2 from the encoded data
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
cmd/erasure-server-pool-decom.go
pi, err := z.PutObjectPart(ctx, bucket, objInfo.Name, res.UploadID, part.Number, NewPutObjReader(hr), ObjectOptions{ PreserveETag: part.ETag, // Preserve original ETag to ensure same metadata. IndexCB: func() []byte { return part.Index // Preserve part Index to ensure decompression works. }, NoAuditLog: true, }) if err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 42.1K bytes - Viewed (1) -
android/guava/src/com/google/common/hash/HashCode.java
return hash == that.asLong(); } private static final long serialVersionUID = 0; } /** * Creates a {@code HashCode} from a byte array. The array is defensively copied to preserve the * immutability contract of {@code HashCode}. The array cannot be empty. * * @since 15.0 (since 12.0 in HashCodes) */ public static HashCode fromBytes(byte[] bytes) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 12.6K bytes - Viewed (0)