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

Function assertNotContains

pkg/transform/where_test.go:47–52  ·  view source on GitHub ↗
(t *testing.T, got, want string)

Source from the content-addressed store, hash-verified

45}
46
47func assertNotContains(t *testing.T, got, want string) {
48 t.Helper()
49 if strings.Contains(strings.ToUpper(got), strings.ToUpper(want)) {
50 t.Errorf("expected output NOT to contain %q, got: %s", want, got)
51 }
52}
53
54func TestAddWhere_NewCondition(t *testing.T) {
55 stmt := mustParse(t, "SELECT id, name FROM users")

Callers 15

TestRemoveColumnFunction · 0.85
TestReplaceColumnFunction · 0.85
TestRemoveWhereFunction · 0.85
TestReplaceWhereFunction · 0.85
TestRemoveOrderByFunction · 0.85
TestReplaceTableFunction · 0.85

Calls 2

HelperMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected