Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestHasOneAssociationWithSelect (1.65 sec)

  1. tests/associations_has_one_test.go

    		t.Errorf("Error happened when clear Account, got %v", err)
    	}
    
    	AssertAssociationCount(t, user2, "Account", 0, "after clear")
    }
    
    func TestHasOneAssociationWithSelect(t *testing.T) {
    	user := *GetUser("hasone", Config{Account: true})
    
    	DB.Omit("Account.Number").Create(&user)
    
    	AssertAssociationCount(t, user, "Account", 1, "")
    
    	var account Account
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top