Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,187 for _clone (0.22 sec)

  1. tests/hooks_test.go

    	gorm.Model
    	Name  string
    	Code  string
    	Price int64
    	Owner string
    }
    
    func (s Product2) BeforeCreate(tx *gorm.DB) (err error) {
    	if !strings.HasSuffix(s.Name, "_clone") {
    		newProduft := s
    		newProduft.Price *= 2
    		newProduft.Name += "_clone"
    		err = tx.Create(&newProduft).Error
    	}
    
    	if s.Name == "Invalid" {
    		return errors.New("invalid")
    	}
    
    	return nil
    }
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Mon Jun 17 03:59:06 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. internal/http/close.go

    	"io"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    )
    
    // DrainBody close non nil response with any response Body.
    // convenient wrapper to drain any remaining data on response body.
    //
    // Subsequently this allows golang http RoundTripper
    // to reuse the same connection for future requests.
    func DrainBody(respBody io.ReadCloser) {
    	// Callers should close resp.Body when done reading from it.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

            cloned.domain = toClone.domain;
            cloned.username = toClone.username;
            cloned.password = toClone.password != null ? toClone.password.clone() : null;
            cloned.type = toClone.type;
        }
    
        /**
         * Returns the domain.
         */
        @Override
        public String getUserDomain() {
            return this.domain;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  4. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Call.kt

       * for this call will not be included on the cloned call. If necessary you may manually copy over
       * specific tags by re-computing them:
       *
       * ```kotlin
       * val copy = original.clone()
       *
       * val myTag = original.tag(MyTag::class)
       * if (myTag != null) {
       *   copy.tag(MyTag::class) { myTag }
       * }
       * ```
       *
       * ```java
       * Call copy = original.clone();
       *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

              .Builder()
              .url(server.url("/"))
              .build(),
          )
        val clone = call.clone() // Not cloneWithListener.
    
        val response = clone.execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.body.string()).isEqualTo("abc")
        response.body.close()
        assertThat(eventRecorder.recordedEventTypes()).isEmpty()
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

        }
    
        /**
         * Test clone with secure password
         */
        @Test
        public void testCloneWithSecurePassword() {
            char[] testPassword = "ClonePass123!".toCharArray();
            NtlmPasswordAuthenticator original = new NtlmPasswordAuthenticator("DOMAIN", "testuser", testPassword);
    
            NtlmPasswordAuthenticator cloned = original.clone();
    
            // Verify cloned values
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/resolution/ModelResolver.java

        /**
         * Clones this resolver for usage in a forked resolution process. In general, implementors need not provide a deep
         * clone. The only requirement is that invocations of {@link #addRepository(Repository)} on the clone do not affect
         * the state of the original resolver and vice versa.
         *
         * @return The cloned resolver, never {@code null}.
         */
        ModelResolver newCopy();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/NtlmNtHashAuthenticator.java

        @Override
        protected byte[] getNTHash() {
            return this.ntHash;
        }
    
        @Override
        public NtlmPasswordAuthenticator clone() {
            final NtlmNtHashAuthenticator cloned = new NtlmNtHashAuthenticator(this.ntHash.clone());
            cloneInternal(cloned, this);
            return cloned;
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt

        server.enqueue(MockResponse(body = "def"))
    
        val request = Request(server.url("/"))
    
        val call = client.newCall(request)
        val response1 = call.execute()
    
        val cloned = call.clone()
        val response2 = cloned.execute()
    
        assertThat("abc").isEqualTo(response1.body.string())
        assertThat("def").isEqualTo(response2.body.string())
      }
    
      @Test
      @Flaky
      fun testMockWebserverRequest() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top