- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 393 for clone (0.02 sec)
-
cmd/postpolicyform_test.go
{ name: "happy path no errors", fv: defaultFormVals.Clone(), wantErr: "", }, { name: "expired policy document", fv: defaultFormVals.Clone(), expired: true, wantErr: "Invalid according to Policy: Policy expired", }, { name: "different AMZ date", fv: defaultFormVals.Clone().Set(xhttp.AmzDate, "2017T000000Z"), wantErr: policyCondFailedErr, },Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
orig.refresh(); // Clone should retain its cached Subject assertSame(copySubj, copy.getSubject(), "Clone should retain its cached Subject"); } else { // If JAAS is not configured and getSubject() returns null, verify cloning still works assertNull(first, "First call to getSubject() returned null - JAAS not configured"); // Clone should also return null for getSubject() calls
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
when(mockMd5.clone()).thenReturn(clonedMd5); HMACT64 clonedHmac = (HMACT64) originalHmac.clone(); assertNotNull(clonedHmac); assertNotSame(originalHmac, clonedHmac); verify(mockMd5, times(1)).clone(); // Verify that the internal MD5 was cloned } } @Test void testCloneNotSupportedException() throws NoSuchAlgorithmException, CloneNotSupportedException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
gorm.go
if sqldb, ok := connPool.(*sql.DB); ok && sqldb != nil { return sqldb, nil } return nil, ErrInvalidDB } func (db *DB) getInstance() *DB { if db.clone > 0 { tx := &DB{Config: db.Config, Error: db.Error} if db.clone == 1 { // clone with new statement tx.Statement = &Statement{ DB: tx, ConnPool: db.Statement.ConnPool, Context: db.Statement.Context,
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Aug 26 06:24:29 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
// Cast and check we can call clone() from CredentialsInternal contract CredentialsInternal ci = (CredentialsInternal) impl; CredentialsInternal cloned = ci.clone(); assertNotNull(cloned, "clone() should return a non-null CredentialsInternal"); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/smb/CredentialsInternalTest.java
} @Test @DisplayName("clone returns a distinct copy with same properties") void clone_returns_copy() { // Arrange Subject subject = new Subject(); TestCredentials creds = new TestCredentials("A", true, false, subject, false); // Act TestCredentials copy = creds.clone(); // AssertRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
SecurityBlob copy = assertDoesNotThrow(() -> (SecurityBlob) original.clone(), "clone() should not throw"); // Assert assertNotSame(original, copy, "clone should return a different instance"); assertTrue(original.equals(copy), "Cloned instance should be equal by content"); // Mutate original backing array; clone should remain based on previous snapshot data[0] = 99;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureCredentialStorageTest.java
char[] plaintext = "SamePassword".toCharArray(); // Encrypt twice byte[] encrypted1 = storage.encryptCredentials(plaintext.clone()); byte[] encrypted2 = storage.encryptCredentials(plaintext.clone()); // Should produce different ciphertexts due to random IV assertFalse(Arrays.equals(encrypted1, encrypted2), "Different encryptions should produce different ciphertexts");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java
assertArrayEquals(originalPassword, clonedPassword, "Cloned password content should match"); // Wipe original - should not affect clone authenticator.secureWipePassword(); char[] originalAfterWipe = (char[]) passwordField.get(authenticator); char[] clonedAfterWipe = (char[]) passwordField.get(cloned);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java
this.contextHandle = contextHandle != null ? contextHandle.clone() : new byte[20]; } /** * Sets the context handle for unregistration. * * @param contextHandle the context handle from registration */ public void setContextHandle(byte[] contextHandle) { this.contextHandle = contextHandle != null ? contextHandle.clone() : null; } /** * Gets the context handle.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 3.8K bytes - Viewed (0)