Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 104 for Friend (0.18 sec)

  1. tests/associations_many2many_test.go

    	// Append
    	friend := *GetUser("friend", Config{})
    
    	if err := DB.Model(&user2).Association("Friends").Append(&friend); err != nil {
    		t.Fatalf("Error happened when append account, got %v", err)
    	}
    
    	user.Friends = append(user.Friends, &friend)
    	CheckUser(t, user2, user)
    
    	AssertAssociationCount(t, user, "Friends", 3, "AfterAppend")
    
    Go
    - Registered: Sun Apr 14 09:35:11 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 13.2K bytes
    - Viewed (0)
  2. tests/update_many2many_test.go

    		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
    	DB.Preload("Languages").Preload("Friends").Find(&user2, "id = ?", user.ID)
    	CheckUser(t, user2, user)
    
    	for idx := range user.Friends {
    		user.Friends[idx].Name += "new"
    	}
    
    Go
    - Registered: Sun Apr 14 09:35:11 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  3. tests/helper_test.go

    		}
    	})
    
    	t.Run("Friends", func(t *testing.T) {
    		if len(user.Friends) != len(expect.Friends) {
    			t.Fatalf("Friends should equal, expect: %v, got %v", len(expect.Friends), len(user.Friends))
    		}
    
    		sort.Slice(user.Friends, func(i, j int) bool {
    			return user.Friends[i].ID > user.Friends[j].ID
    		})
    
    		sort.Slice(expect.Friends, func(i, j int) bool {
    Go
    - Registered: Sun Apr 14 09:35:11 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Interners.java

      public static <E> Interner<E> newWeakInterner() {
        return newBuilder().weak().build();
      }
    
      @VisibleForTesting
      static final class InternerImpl<E> implements Interner<E> {
        // MapMaker is our friend, we know about this type
        @VisibleForTesting final MapMakerInternalMap<E, Dummy, ?, ?> map;
    
        private InternerImpl(MapMaker mapMaker) {
          this.map =
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 5.9K bytes
    - Viewed (1)
  5. android/guava/src/com/google/common/collect/Interners.java

      public static <E> Interner<E> newWeakInterner() {
        return newBuilder().weak().build();
      }
    
      @VisibleForTesting
      static final class InternerImpl<E> implements Interner<E> {
        // MapMaker is our friend, we know about this type
        @VisibleForTesting final MapMakerInternalMap<E, Dummy, ?, ?> map;
    
        private InternerImpl(MapMaker mapMaker) {
          this.map =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  6. CODE_OF_CONDUCT.md

    1.  Address the perceived conflict directly with those involved, preferably in a
        real-time medium.
    2.  If this fails, get a third party (e.g. a mutual friend, and/or someone with
        background on the issue, but not involved in the conflict) to intercede.
    3.  If you are still unable to resolve the conflict, and you believe it rises to
    Plain Text
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Fri Feb 05 18:43:16 GMT 2021
    - 5.2K bytes
    - Viewed (0)
  7. schema/schema_test.go

    				},
    				{
    					Name: "FriendID", DBName: "friend_id", BindNames: []string{"FriendID"}, DataType: schema.Uint,
    					Tag: `gorm:"primarykey"`, Creatable: true, Updatable: true, Readable: true, PrimaryKey: true, Size: 64,
    				},
    			}},
    			References: []Reference{{"ID", "User", "UserID", "user_friends", "", true}, {"ID", "User", "FriendID", "user_friends", "", false}},
    		},
    	}
    
    	for _, relation := range relations {
    Go
    - Registered: Sun Apr 14 09:35:11 GMT 2024
    - Last Modified: Fri Dec 15 08:31:23 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_unified_experimental_graph.cc

      }
      // For LLVM style RTTI.
      static bool classof(const AbstractOperation* ptr) {
        return ptr->getKind() == kGraph;
      }
      ~GraphOperation() override {}
    
     private:
      friend class GraphContext;  // For access to op_.
      TF_Graph* g_;
      std::unique_ptr<TF_OperationDescription> op_;
      // Hold `op_type` and `op_name` till both are available since we need both
      // to build a graph operation.
    C++
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  9. docs/en/docs/python-types.md

    But then you have to call "that method that converts the first letter to upper case".
    
    Was it `upper`? Was it `uppercase`? `first_uppercase`? `capitalize`?
    
    Then, you try with the old programmer's friend, editor autocompletion.
    
    You type the first parameter of the function, `first_name`, then a dot (`.`) and then hit `Ctrl+Space` to trigger the completion.
    
    But, sadly, you get nothing useful:
    
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 17K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

      `Serpent, I say again!' repeated the Pigeon, but in a more
    subdued tone, and added with a kind of sob, `I've tried every
    way, and nothing seems to suit them!'
    
      `I haven't the least idea what you're talking about,' said
    Alice.
    
      `I've tried the roots of trees, and I've tried banks, and I've
    tried hedges,' the Pigeon went on, without attending to her; `but
    those serpents!  There's no pleasing them!'
    
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
Back to top