Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGenericsAssociationSlice (0.09 sec)

  1. tests/generics_test.go

    			Type:        op.Type,
    		}
    
    		if assoc.Type != op.Type {
    			t.Errorf("Association type should be %s, got %v", op.TypeName, assoc.Type)
    		}
    	}
    }
    
    func TestGenericsAssociationSlice(t *testing.T) {
    	// Test that a slice of Association can be used
    	associations := []clause.Association{
    		{Association: "Orders", Type: clause.OpDelete},
    		{Association: "Profiles", Type: clause.OpUpdate},
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 33.7K bytes
    - Viewed (0)
Back to top