- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestScanToEmbedded (0.07 sec)
-
tests/scan_test.go
t.Errorf("should get no error, but got %v", err) } } if !reflect.DeepEqual(reusedVar, Result{}) { t.Errorf("Should find zero values in struct fields, got %+v\n", reusedVar) } } func TestScanToEmbedded(t *testing.T) { person1 := Person{Name: "person 1"} person2 := Person{Name: "person 2"} DB.Save(&person1).Save(&person2) address1 := Address{Name: "address 1"} address2 := Address{Name: "address 2"}
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:57:36 UTC 2024 - 10.9K bytes - Viewed (0)