- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,356 for one (0.14 sec)
-
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 28 09:35:09 GMT 2024 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 6.8K bytes - Viewed (0) -
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 28 09:35:09 GMT 2024 - Last Modified: Thu Jul 14 06:55:54 GMT 2022 - 3.6K bytes - Viewed (0) -
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) -
src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java
public void testGet() throws Exception { assertThat(map.get("ONE"), is("1")); assertThat(map.get("One"), is("1")); assertThat(map.get("hoge"), is(nullValue())); } /** * @throws Exception */ @Test public void testPut() throws Exception { assertThat(map.put("One", "11"), is("1")); assertThat(map.get("one"), is("11")); } /** * @throws Exception
Java - Registered: Fri Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheManualTest.java
assertFalse(cache.asMap().containsValue(one)); cache.put(one, two); assertSame(two, cache.getIfPresent(one)); stats = cache.stats(); assertEquals(2, stats.missCount()); assertEquals(0, stats.loadSuccessCount()); assertEquals(0, stats.loadExceptionCount()); assertEquals(1, stats.hitCount()); assertSame(two, cache.asMap().get(one)); assertTrue(cache.asMap().containsKey(one));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 5.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheManualTest.java
assertFalse(cache.asMap().containsValue(one)); cache.put(one, two); assertSame(two, cache.getIfPresent(one)); stats = cache.stats(); assertEquals(2, stats.missCount()); assertEquals(0, stats.loadSuccessCount()); assertEquals(0, stats.loadExceptionCount()); assertEquals(1, stats.hitCount()); assertSame(two, cache.asMap().get(one)); assertTrue(cache.asMap().containsKey(one));
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 5.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java
Iterator<Subscriber> one = registry.getSubscribers(""); assertEquals(s1, one.next().target); assertFalse(one.hasNext()); one = registry.getSubscribers(""); registry.register(s2); registry.register(o1); Iterator<Subscriber> three = registry.getSubscribers(""); assertEquals(s1, one.next().target); assertFalse(one.hasNext());
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 5.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java
import static com.google.common.collect.testing.features.CollectionFeature.REJECTS_DUPLICATES_AT_CREATION; import static com.google.common.collect.testing.features.CollectionSize.ONE; import static com.google.common.collect.testing.features.CollectionSize.ZERO; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.testing.features.CollectionFeature;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 3.5K bytes - Viewed (0) -
maven-core/src/test/resources-project-builder/equal-plugin-exec-ids/pom.xml
<executions> <execution> <id>the-one-and-only-id</id> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.its.plugins</groupId> <artifactId>maven-it-plugin-b</artifactId> <version>1.0-SNAPSHOT</version> <executions> <execution> <id>the-one-and-only-id</id> </execution> </executions>
XML - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Sun Mar 29 19:02:56 GMT 2020 - 2.5K bytes - Viewed (0) -
guava-gwt/test/com/google/common/testing/Testing.gwt.xml
worked everywhere that I know of except for one place: when running the GWT util.concurrent tests under Guava. The problem is that GWT responds poorly to two .gwt.xml files in the same Java package; see https://goo.gl/pRV3Yn for details. The summary is that it ignores one file in favor of the other. util.concurrent, like nearly all our packages, has two .gwt.xml files: one
XML - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Jan 06 15:30:58 GMT 2022 - 1.5K bytes - Viewed (0)