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

Function TestPlugin_DefaultMaxHistory

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

Source from the content-addressed store, hash-verified

146}
147
148func TestPlugin_DefaultMaxHistory(t *testing.T) {
149 // NewPlugin without options should use the default (1000).
150 plugin := gosqlxgorm.NewPlugin()
151 // Just verify it does not panic and stats work.
152 stats := plugin.Stats()
153 if stats.TotalQueries != 0 {
154 t.Errorf("expected 0 queries on fresh plugin, got %d", stats.TotalQueries)
155 }
156}

Callers

nothing calls this directly

Calls 2

StatsMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected