----------------------------------------------------------------------------- parseWhereClause ----------------------------------------------------------------------------- TestParseWhereClause_Absent checks that Where is nil when there is no WHERE.
(t *testing.T)
| 208 | |
| 209 | // TestParseWhereClause_Absent checks that Where is nil when there is no WHERE. |
| 210 | func TestParseWhereClause_Absent(t *testing.T) { |
| 211 | stmt := parseSQLWithDialect(t, "SELECT id FROM users", keywords.DialectPostgreSQL) |
| 212 | if stmt.Where != nil { |
| 213 | t.Errorf("expected nil Where, got %T", stmt.Where) |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | // TestParseWhereClause_SimpleEquality verifies a basic WHERE id = 1. |
| 218 | func TestParseWhereClause_SimpleEquality(t *testing.T) { |
nothing calls this directly
no test coverage detected