Test RequireValidSQL with valid SQL
(t *testing.T)
| 86 | |
| 87 | // Test RequireValidSQL with valid SQL |
| 88 | func TestRequireValidSQL_Valid(t *testing.T) { |
| 89 | mockT := &mockTestingT{} |
| 90 | |
| 91 | RequireValidSQL(mockT, "SELECT * FROM users") |
| 92 | |
| 93 | if mockT.fataled { |
| 94 | t.Error("RequireValidSQL should not fatal for valid SQL") |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | // Test RequireValidSQL with invalid SQL |
| 99 | func TestRequireValidSQL_Invalid(t *testing.T) { |
nothing calls this directly
no test coverage detected