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

Function TestPlugin_ParseErrorDoesNotPanic

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

Source from the content-addressed store, hash-verified

87}
88
89func TestPlugin_ParseErrorDoesNotPanic(t *testing.T) {
90 db := openTestDB(t)
91 plugin := gosqlxgorm.NewPlugin()
92 _ = db.Use(plugin)
93
94 // Raw SQL that might not parse perfectly — plugin must not panic
95 var result int
96 db.Raw("SELECT 1 + 1").Scan(&result)
97
98 // No panic = success
99}
100
101func TestPlugin_MaxHistory(t *testing.T) {
102 db := openTestDB(t)

Callers

nothing calls this directly

Calls 2

openTestDBFunction · 0.85
ScanMethod · 0.80

Tested by

no test coverage detected