(t *testing.T)
| 146 | } |
| 147 | |
| 148 | func 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 | } |