- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for TestWithResultIncludesError (0.09 seconds)
-
generics_withresult_test.go
package gorm_test import ( "context" "testing" "gorm.io/driver/sqlite" "gorm.io/gorm" ) type withResultUser struct { ID uint Name string } func TestWithResultIncludesError(t *testing.T) { db, err := gorm.Open(sqlite.Open("file::memory:?cache=shared"), &gorm.Config{}) if err != nil { t.Fatalf("open db failed: %v", err) } if err := db.AutoMigrate(&withResultUser{}); err != nil {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:34:24 GMT 2026 - 1.2K bytes - Click Count (0)