(t *testing.T)
| 87 | } |
| 88 | |
| 89 | func 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 | |
| 101 | func TestPlugin_MaxHistory(t *testing.T) { |
| 102 | db := openTestDB(t) |
nothing calls this directly
no test coverage detected