Test RequireInvalidSQL with invalid SQL
(t *testing.T)
| 111 | |
| 112 | // Test RequireInvalidSQL with invalid SQL |
| 113 | func TestRequireInvalidSQL_Invalid(t *testing.T) { |
| 114 | mockT := &mockTestingT{} |
| 115 | |
| 116 | RequireInvalidSQL(mockT, "SELECT FROM WHERE") |
| 117 | |
| 118 | if mockT.fataled { |
| 119 | t.Error("RequireInvalidSQL should not fatal for invalid SQL") |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | // Test RequireInvalidSQL with valid SQL |
| 124 | func TestRequireInvalidSQL_Valid(t *testing.T) { |
nothing calls this directly
no test coverage detected