MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestRequireInvalidSQL_Invalid

Function TestRequireInvalidSQL_Invalid

pkg/gosqlx/testing/testing_test.go:113–121  ·  view source on GitHub ↗

Test RequireInvalidSQL with invalid SQL

(t *testing.T)

Source from the content-addressed store, hash-verified

111
112// Test RequireInvalidSQL with invalid SQL
113func 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
124func TestRequireInvalidSQL_Valid(t *testing.T) {

Callers

nothing calls this directly

Calls 2

RequireInvalidSQLFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected