(t *testing.T)
| 274 | } |
| 275 | |
| 276 | func TestSelectWithWhereEqualToTrue(t *testing.T) { |
| 277 | |
| 278 | engineTestSuite := engineTableContentTestSuite{ |
| 279 | createInputs: []string{ |
| 280 | "CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );", |
| 281 | }, |
| 282 | insertAndDeleteInputs: []string{ |
| 283 | "INSERT INTO tb1 VALUES( 'hello', 1, 11, 'q' );", |
| 284 | "INSERT INTO tb1 VALUES( 'goodbye', 2, 22, 'w' );", |
| 285 | "INSERT INTO tb1 VALUES( 'goodbye', 3, 33, 'e' );", |
| 286 | }, |
| 287 | selectInput: "SELECT * FROM tb1 WHERE TRUE;", |
| 288 | expectedOutput: [][]string{ |
| 289 | {"one", "two", "three", "four"}, |
| 290 | {"hello", "1", "11", "q"}, |
| 291 | {"goodbye", "2", "22", "w"}, |
| 292 | {"goodbye", "3", "33", "e"}, |
| 293 | }, |
| 294 | } |
| 295 | |
| 296 | engineTestSuite.runTestSuite(t) |
| 297 | } |
| 298 | |
| 299 | func TestSelectWithWhereEqualToFalse(t *testing.T) { |
| 300 |
nothing calls this directly
no test coverage detected