Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 421 for Replace (0.25 sec)

  1. tests/associations_has_many_test.go

    	)
    
    	AssertAssociationCount(t, users, "Pets", 10, "After Append")
    
    	// Replace -> same as append
    	DB.Model(&users).Association("Pets").Replace(
    		[]*Pet{{Name: "pet-slice-replace-1-1"}, {Name: "pet-slice-replace-1-2"}},
    		[]*Pet{{Name: "pet-slice-replace-2-1"}, {Name: "pet-slice-replace-2-2"}},
    		&Pet{Name: "pet-slice-replace-3"},
    	)
    
    	AssertAssociationCount(t, users, "Pets", 5, "After Append")
    
    	// Delete
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
  2. tests/associations_many2many_test.go

    	languages2_1 := []*Language{
    		{Code: "language-slice-replace-1-1", Name: "language-slice-replace-1-1"},
    		{Code: "language-slice-replace-1-2", Name: "language-slice-replace-1-2"},
    	}
    	languages2_2 := []*Language{
    		{Code: "language-slice-replace-2-1", Name: "language-slice-replace-2-1"},
    		{Code: "language-slice-replace-2-2", Name: "language-slice-replace-2-2"},
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sat Jun 10 13:05:19 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt

          """
          |--simple boundary
          |
          |abcd
          |--simple boundary
          |
          |efgh
          |--simple boundary--
          """.trimMargin()
            .replace("\n", "\r\n")
            .replace(Regex("(?m)abcd\r\n"), "abcd\n")
    
        val parts =
          MultipartReader(
            boundary = "simple boundary",
            source = Buffer().writeUtf8(multipart),
          )
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  4. tests/multi_primary_keys_test.go

    		t.Fatalf("Preload many2many relations")
    	}
    
    	// Replace
    	tag5 := &Tag{Locale: "ZH", Value: "tag5"}
    	tag6 := &Tag{Locale: "ZH", Value: "tag6"}
    	DB.Model(&blog).Association("Tags").Replace(tag5, tag6)
    	var tags2 []Tag
    	DB.Model(&blog).Association("Tags").Find(&tags2)
    	if !compareTags(tags2, []string{"tag5", "tag6"}) {
    		t.Fatalf("Should find 2 tags after Replace")
    	}
    
    	if DB.Model(&blog).Association("Tags").Count() != 2 {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/FileTransformer.java

         */
        protected String path;
    
        /**
         * A string to replace ?.
         */
        protected String questionStr = "_QUEST_";
    
        /**
         * A string to replace :.
         */
        protected String colonStr = "_CLN_";
    
        /**
         * A string to replace ;.
         */
        protected String semicolonStr = "_SCLN_";
    
        /**
         * A string to replace &.
         */
        protected String ampersandStr = "_AMP_";
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertNull(map.putIfAbsent(three, one));
        assertSame(one, map.get(three));
        assertSame(two, map.replace(one, three));
        assertSame(three, map.get(one));
        assertFalse(map.replace(one, two, three));
        assertSame(three, map.get(one));
        assertTrue(map.replace(one, three, two));
        assertSame(two, map.get(one));
        assertEquals(3, map.size());
    
        map.clear();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/MultipartBodyTest.kt

        }
      }
    
      @Test
      fun singlePart() {
        val expected =
          """
          |--123
          |
          |Hello, World!
          |--123--
          |
          """.trimMargin().replace("\n", "\r\n")
        val body =
          MultipartBody
            .Builder("123")
            .addPart("Hello, World!".toRequestBody(null))
            .build()
        assertThat(body.boundary).isEqualTo("123")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

            // Rest of bytes are already 0
    
            info502.security_descriptor = securityDescriptorBytes;
            info502.sd_size = securityDescriptorBytes.length;
    
            // Replace info field
            Field infoField = msrpcShareGetInfo.getClass().getSuperclass().getDeclaredField("info");
            infoField.setAccessible(true);
            infoField.set(msrpcShareGetInfo, info502);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/audit/SecurityAuditLogger.java

            if (value == null) {
                return "";
            }
            return value.replace("\\", "\\\\")
                    .replace("\"", "\\\"")
                    .replace("\b", "\\b")
                    .replace("\f", "\\f")
                    .replace("\n", "\\n")
                    .replace("\r", "\\r")
                    .replace("\t", "\\t");
        }
    
        private void logAsText(AuditEntry entry) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/MsrpcDfsRootEnumTest.java

            // Create empty DfsEnumArray200
            netdfs.DfsEnumArray200 emptyArray = new netdfs.DfsEnumArray200();
            emptyArray.count = 0;
            emptyArray.s = new netdfs.DfsInfo200[0];
    
            // Replace the info.e field with our empty array
            setDfsEnumArray(dfsRootEnum, emptyArray);
    
            // Test getEntries returns empty array
            FileEntry[] entries = dfsRootEnum.getEntries();
            assertNotNull(entries);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.9K bytes
    - Viewed (0)
Back to top