MCPcopy Index your code
hub / github.com/LissaGreense/GO4SQL / TestSelectCommand

Function TestSelectCommand

engine/engine_test.go:43–63  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

41}
42
43func 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
65func TestSelectWithColumnNamesCommand(t *testing.T) {
66 engineTestSuite := engineTableContentTestSuite{

Callers

nothing calls this directly

Calls 1

runTestSuiteMethod · 0.95

Tested by

no test coverage detected