- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestQueryError (0.16 sec)
-
tests/query_test.go
t.Errorf("failed to find:%v", err) } if len(qs) != 2 { t.Fatalf("find count not equal:%d", len(qs)) } AssertEqual(t, q1, qs[0]) AssertEqual(t, q2, qs[1]) } func TestQueryError(t *testing.T) { type P struct{} var p1 P err := DB.Take(&p1, 1).Error AssertEqual(t, err, gorm.ErrModelAccessibleFieldsRequired) var p2 interface{}
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 50.4K bytes - Viewed (0)