MCPcopy Create free account
hub / github.com/LissaGreense/GO4SQL / TestSelectWithWhereEqual

Function TestSelectWithWhereEqual

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

Source from the content-addressed store, hash-verified

85}
86
87func TestSelectWithWhereEqual(t *testing.T) {
88 engineTestSuite := engineTableContentTestSuite{
89 createInputs: []string{
90 "CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );",
91 },
92 insertAndDeleteInputs: []string{
93 "INSERT INTO tb1 VALUES( 'hello', 1, 11, 'q' );",
94 "INSERT INTO tb1 VALUES( 'goodbye', 2, 22, 'w' );",
95 "INSERT INTO tb1 VALUES( 'byebye', 3, 33, 'e' );",
96 },
97 selectInput: "SELECT one, two, three, four FROM tb1 WHERE one EQUAL 'hello';",
98 expectedOutput: [][]string{
99 {"one", "two", "three", "four"},
100 {"hello", "1", "11", "q"},
101 },
102 }
103
104 engineTestSuite.runTestSuite(t)
105}
106
107func TestSelectWithWhereNotEqual(t *testing.T) {
108

Callers

nothing calls this directly

Calls 1

runTestSuiteMethod · 0.95

Tested by

no test coverage detected