Test AssertInvalidSQL with invalid SQL
(t *testing.T)
| 55 | |
| 56 | // Test AssertInvalidSQL with invalid SQL |
| 57 | func TestAssertInvalidSQL_Invalid(t *testing.T) { |
| 58 | mockT := &mockTestingT{} |
| 59 | |
| 60 | result := AssertInvalidSQL(mockT, "SELECT FROM WHERE") |
| 61 | |
| 62 | if !result { |
| 63 | t.Error("AssertInvalidSQL should return true for invalid SQL") |
| 64 | } |
| 65 | if mockT.failed { |
| 66 | t.Error("AssertInvalidSQL should not fail for invalid SQL") |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // Test AssertInvalidSQL with valid SQL |
| 71 | func TestAssertInvalidSQL_Valid(t *testing.T) { |
nothing calls this directly
no test coverage detected