(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestSelectCommand(t *testing.T) { |
| 44 | engineTestSuite := engineTableContentTestSuite{ |
| 45 | createInputs: []string{ |
| 46 | "CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );", |
| 47 | }, |
| 48 | insertAndDeleteInputs: []string{ |
| 49 | "INSERT INTO tb1 VALUES( 'hello', 1, 11, 'q' );", |
| 50 | "INSERT INTO tb1 VALUES( 'goodbye', 2, 22, NULL );", |
| 51 | "INSERT INTO tb1 VALUES( 'byebye', NULL, 33, 'e' );", |
| 52 | }, |
| 53 | selectInput: "SELECT * FROM tb1;", |
| 54 | expectedOutput: [][]string{ |
| 55 | {"one", "two", "three", "four"}, |
| 56 | {"hello", "1", "11", "q"}, |
| 57 | {"goodbye", "2", "22", "NULL"}, |
| 58 | {"byebye", "NULL", "33", "e"}, |
| 59 | }, |
| 60 | } |
| 61 | |
| 62 | engineTestSuite.runTestSuite(t) |
| 63 | } |
| 64 | |
| 65 | func TestSelectWithColumnNamesCommand(t *testing.T) { |
| 66 | engineTestSuite := engineTableContentTestSuite{ |
nothing calls this directly
no test coverage detected