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

Function TestSelectWithColumnNamesCommand

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

Source from the content-addressed store, hash-verified

63}
64
65func 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
87func TestSelectWithWhereEqual(t *testing.T) {
88 engineTestSuite := engineTableContentTestSuite{

Callers

nothing calls this directly

Calls 1

runTestSuiteMethod · 0.95

Tested by

no test coverage detected