Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestJoinCount (0.16 sec)

  1. tests/joins_test.go

    	}
    
    	if len(results) != 2 || results[0].Name != "" || results[1].Name != "" {
    		t.Errorf("Should find all two pets with Join omit and should not find user's name, got %+v", results)
    		return
    	}
    }
    
    func TestJoinCount(t *testing.T) {
    	companyA := Company{Name: "A"}
    	companyB := Company{Name: "B"}
    	DB.Create(&companyA)
    	DB.Create(&companyB)
    
    	user := User{Name: "kingGo", CompanyID: &companyB.ID}
    	DB.Create(&user)
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 17 03:58:13 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top