Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,401 for One (0.15 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 May 05 09:35:13 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 May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 6.8K bytes
    - Viewed (0)
  3. 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 May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  4. 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)
  5. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.4K bytes
    - Viewed (0)
  6. 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 May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4K bytes
    - Viewed (0)
  7. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  8. 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)
  9. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  10. ci/official/utilities/rename_and_verify_wheels.sh

    # Puts new wheel through auditwheel to rename and verify it, deletes the old
    # one, checks the filesize, and then ensures the new wheel is installable.
    set -euxo pipefail
    
    cd "$TFCI_OUTPUT_DIR"
    
    # Move extra wheel files somewhere out of the way. This script
    # expects just one wheel file to exist.
    if [[ "$(ls *.whl | wc -l | tr -d ' ')" != "1" ]]; then
      echo "More than one wheel file is present: moving the oldest to"
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 27 21:16:27 GMT 2024
    - 3.4K bytes
    - Viewed (0)
Back to top