Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,076 for one (0.14 sec)

  1. tests/update_has_one_test.go

    	"time"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestUpdateHasOne(t *testing.T) {
    	user := *GetUser("update-has-one", Config{})
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	user.Account = Account{Number: "account-has-one-association"}
    
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Thu Jul 14 06:55:54 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  2. tests/associations_has_one_test.go

    }
    
    func TestPolymorphicHasOneAssociationForSlice(t *testing.T) {
    	pets := []Pet{
    		{Name: "hasone-1", Toy: Toy{Name: "toy-has-one"}},
    		{Name: "hasone-2", Toy: Toy{}},
    		{Name: "hasone-3", Toy: Toy{Name: "toy-has-one"}},
    	}
    
    	DB.Create(&pets)
    
    	// Count
    	AssertAssociationCount(t, pets, "Toy", 2, "")
    
    	// Find
    	var toys []Toy
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 6.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertEquals(EMPTY_STATS, cache.stats());
    
        Object one = new Object();
        assertNull(map.put(one, one));
        assertSame(one, map.get(one));
        assertTrue(map.containsKey(one));
        assertTrue(map.containsValue(one));
        Object two = new Object();
        assertSame(one, map.replace(one, two));
        assertTrue(map.containsKey(one));
        assertFalse(map.containsValue(one));
        Object three = new Object();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        assertMapEquals(ImmutableSortedMap.of("one", 1), "one", 1);
        assertMapEquals(ImmutableSortedMap.of("one", 1, "two", 2), "one", 1, "two", 2);
        assertMapEquals(
            ImmutableSortedMap.of("one", 1, "two", 2, "three", 3), "one", 1, "three", 3, "two", 2);
        assertMapEquals(
            ImmutableSortedMap.of("one", 1, "two", 2, "three", 3, "four", 4),
            "four",
            4,
            "one",
            1,
            "three",
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 27K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        assertMapEquals(ImmutableSortedMap.of("one", 1), "one", 1);
        assertMapEquals(ImmutableSortedMap.of("one", 1, "two", 2), "one", 1, "two", 2);
        assertMapEquals(
            ImmutableSortedMap.of("one", 1, "two", 2, "three", 3), "one", 1, "three", 3, "two", 2);
        assertMapEquals(
            ImmutableSortedMap.of("one", 1, "two", 2, "three", 3, "four", 4),
            "four",
            4,
            "one",
            1,
            "three",
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  6. tests/test_openapi_examples.py

    def examples(
        item: Item = Body(
            examples=[
                {"data": "Data in Body examples, example1"},
            ],
            openapi_examples={
                "Example One": {
                    "summary": "Example One Summary",
                    "description": "Example One Description",
                    "value": {"data": "Data in Body examples, example1"},
                },
                "Example Two": {
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 17K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

          "scheduledTasks=[task two, task one]",
        )
    
        taskFaker.advanceUntil(200.µs)
        assertThat(log).containsExactly(
          "scheduledTasks=[task two, task one]",
          "scheduledTasks=[task one]",
        )
    
        taskFaker.advanceUntil(300.µs)
        assertThat(log).containsExactly(
          "scheduledTasks=[task two, task one]",
          "scheduledTasks=[task one]",
          "scheduledTasks=[]",
        )
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 20K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertEquals(EMPTY_STATS, cache.stats());
    
        Object one = new Object();
        assertNull(map.put(one, one));
        assertSame(one, map.get(one));
        assertTrue(map.containsKey(one));
        assertTrue(map.containsValue(one));
        Object two = new Object();
        assertSame(one, map.replace(one, two));
        assertTrue(map.containsKey(one));
        assertFalse(map.containsValue(one));
        Object three = new Object();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/TableCollectorsTest.java

        try {
          Stream.of(immutableCell("one", "uno", 1)).collect(collector);
          fail("Expected NullPointerException");
        } catch (NullPointerException expected) {
        }
        collector =
            TableCollectors.toImmutableTable(Cell::getRowKey, Cell::getColumnKey, Cell::getValue);
        try {
          Stream.of(immutableCell("one", "uno", 1), immutableCell("one", "uno", (Integer) null))
              .collect(collector);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 16:03:18 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/util/MemoryUtil.java

     */
    package org.codelibs.fess.util;
    
    import static org.apache.commons.io.FileUtils.ONE_EB_BI;
    import static org.apache.commons.io.FileUtils.ONE_GB_BI;
    import static org.apache.commons.io.FileUtils.ONE_KB_BI;
    import static org.apache.commons.io.FileUtils.ONE_MB_BI;
    import static org.apache.commons.io.FileUtils.ONE_PB_BI;
    import static org.apache.commons.io.FileUtils.ONE_TB_BI;
    
    import java.math.BigDecimal;
    import java.math.BigInteger;
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top