MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestPlugin_Initialize_NoError

Function TestPlugin_Initialize_NoError

integrations/gorm/plugin_test.go:43–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

41}
42
43func TestPlugin_Initialize_NoError(t *testing.T) {
44 db := openTestDB(t)
45 plugin := gosqlxgorm.NewPlugin()
46 if err := db.Use(plugin); err != nil {
47 t.Fatalf("Use plugin: %v", err)
48 }
49}
50
51func TestPlugin_RecordsQueriesOnQuery(t *testing.T) {
52 db := openTestDB(t)

Callers

nothing calls this directly

Calls 2

openTestDBFunction · 0.85
FatalfMethod · 0.65

Tested by

no test coverage detected