(t *testing.T)
| 63 | } |
| 64 | |
| 65 | func TestSelectWithColumnNamesCommand(t *testing.T) { |
| 66 | engineTestSuite := engineTableContentTestSuite{ |
| 67 | createInputs: []string{ |
| 68 | "CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );", |
| 69 | }, |
| 70 | insertAndDeleteInputs: []string{ |
| 71 | "INSERT INTO tb1 VALUES( 'hello', 1, 11, 'q' );", |
| 72 | "INSERT INTO tb1 VALUES( 'goodbye', 2, 22, 'w' );", |
| 73 | "INSERT INTO tb1 VALUES( 'byebye', 3, 33, 'e' );", |
| 74 | }, |
| 75 | selectInput: "SELECT one, two, three, four FROM tb1;", |
| 76 | expectedOutput: [][]string{ |
| 77 | {"one", "two", "three", "four"}, |
| 78 | {"hello", "1", "11", "q"}, |
| 79 | {"goodbye", "2", "22", "w"}, |
| 80 | {"byebye", "3", "33", "e"}, |
| 81 | }, |
| 82 | } |
| 83 | |
| 84 | engineTestSuite.runTestSuite(t) |
| 85 | } |
| 86 | |
| 87 | func TestSelectWithWhereEqual(t *testing.T) { |
| 88 | engineTestSuite := engineTableContentTestSuite{ |
nothing calls this directly
no test coverage detected