Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,944 for when (0.27 sec)

  1. tests/update_many2many_test.go

    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	user.Languages = []Language{{Code: "zh-CN", Name: "Chinese"}, {Code: "en", Name: "English"}}
    	for _, lang := range user.Languages {
    		DB.Create(&lang)
    	}
    	user.Friends = []*User{{Name: "friend-1"}, {Name: "friend-2"}}
    
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user2 User
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  2. tests/count_test.go

    		t.Errorf("error should raise when using preload without schema")
    	}
    
    	var count13 int64
    	if err := DB.Model(User{}).
    		Where("name in ?", []string{user1.Name, user2.Name, user3.Name}).
    		Preload("Toys", func(db *gorm.DB) *gorm.DB {
    			return db.Table("toys").Select("name")
    		}).Count(&count13).Error; err != nil {
    		t.Errorf("no error should raise when using count with preload, but got %v", err)
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 6.9K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/HasKotlinFlagsMetadataQuery.kt

            flag(flags)
        }
    
    
    private
    fun KotlinClassMetadata.hasKotlinFlags(memberType: MemberType, jvmSignature: String, predicate: (Flags) -> Boolean): Boolean =
        when (this) {
            is KotlinClassMetadata.Class -> hasClassFlags(this::toKmClass, memberType, jvmSignature, predicate)
            is KotlinClassMetadata.FileFacade -> hasPackageFlags(this::toKmPackage, memberType, jvmSignature, predicate)
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Jun 07 08:14:15 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/ParametricNullness.java

     * </ul>
     *
     * <p>Consumers of this annotation include:
     *
     * <ul>
     *   <li>Kotlin, for which it makes the type-variable usage (a) a Kotlin platform type when the type
     *       argument is non-nullable and (b) nullable when the type argument is nullable. We use this
     *       to "undo" {@link ElementTypesAreNonnullByDefault}. It is the best we can do for Kotlin
     *       under our current constraints.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Aug 10 21:27:51 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/ParametricNullness.java

     * </ul>
     *
     * <p>Consumers of this annotation include:
     *
     * <ul>
     *   <li>Kotlin, for which it makes the type-variable usage (a) a Kotlin platform type when the type
     *       argument is non-nullable and (b) nullable when the type argument is nullable. We use this
     *       to "undo" {@link ElementTypesAreNonnullByDefault}. It is the best we can do for Kotlin
     *       under our current constraints.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Aug 10 21:27:51 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/escape/ParametricNullness.java

     * </ul>
     *
     * <p>Consumers of this annotation include:
     *
     * <ul>
     *   <li>Kotlin, for which it makes the type-variable usage (a) a Kotlin platform type when the type
     *       argument is non-nullable and (b) nullable when the type argument is nullable. We use this
     *       to "undo" {@link ElementTypesAreNonnullByDefault}. It is the best we can do for Kotlin
     *       under our current constraints.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 10 21:27:51 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/html/ParametricNullness.java

     * </ul>
     *
     * <p>Consumers of this annotation include:
     *
     * <ul>
     *   <li>Kotlin, for which it makes the type-variable usage (a) a Kotlin platform type when the type
     *       argument is non-nullable and (b) nullable when the type argument is nullable. We use this
     *       to "undo" {@link ElementTypesAreNonnullByDefault}. It is the best we can do for Kotlin
     *       under our current constraints.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 10 21:27:51 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/apiserverinternal/v1alpha1/generated.proto

    // An API server instance reports the version it can decode and the version it
    // encodes objects to when persisting objects in the backend.
    message ServerStorageVersion {
      // The ID of the reporting API server.
      optional string apiServerID = 1;
    
      // The API server encodes the object to this version when persisting it in
      // the backend (e.g., etcd).
      optional string encodingVersion = 2;
    
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/ParametricNullness.java

     * </ul>
     *
     * <p>Consumers of this annotation include:
     *
     * <ul>
     *   <li>Kotlin, for which it makes the type-variable usage (a) a Kotlin platform type when the type
     *       argument is non-nullable and (b) nullable when the type argument is nullable. We use this
     *       to "undo" {@link ElementTypesAreNonnullByDefault}. It is the best we can do for Kotlin
     *       under our current constraints.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Aug 10 21:27:51 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/ForwardingCacheTest.java

        forward.invalidateAll();
        verify(mock).invalidateAll();
      }
    
      public void testSize() {
        when(mock.size()).thenReturn(0L);
        assertEquals(0, forward.size());
      }
    
      public void testStats() {
        when(mock.stats()).thenReturn(null);
        assertNull(forward.stats());
      }
    
      public void testAsMap() {
        when(mock.asMap()).thenReturn(null);
        assertNull(forward.asMap());
      }
    
      public void testCleanUp() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.1K bytes
    - Viewed (0)
Back to top