(t *testing.T)
| 209 | } |
| 210 | |
| 211 | func TestSelectWithWhereLogicalOperationAnd(t *testing.T) { |
| 212 | |
| 213 | engineTestSuite := engineTableContentTestSuite{ |
| 214 | createInputs: []string{ |
| 215 | "CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );", |
| 216 | }, |
| 217 | insertAndDeleteInputs: []string{ |
| 218 | "INSERT INTO tb1 VALUES( 'hello', 1, 11, 'q' );", |
| 219 | "INSERT INTO tb1 VALUES( 'goodbye', NULL, 22, 'w' );", |
| 220 | "INSERT INTO tb1 VALUES( 'goodbye', 3, 33, 'e' );", |
| 221 | }, |
| 222 | selectInput: "SELECT * FROM tb1 WHERE one EQUAL 'goodbye' AND two NOT NULL;", |
| 223 | expectedOutput: [][]string{ |
| 224 | {"one", "two", "three", "four"}, |
| 225 | {"goodbye", "3", "33", "e"}, |
| 226 | }, |
| 227 | } |
| 228 | |
| 229 | engineTestSuite.runTestSuite(t) |
| 230 | } |
| 231 | |
| 232 | func TestSelectWithWhereLogicalOperationOR(t *testing.T) { |
| 233 |
nothing calls this directly
no test coverage detected