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

Function TestSelectWithWhereContainsButResponseIsEmpty

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

Source from the content-addressed store, hash-verified

169}
170
171func TestSelectWithWhereContainsButResponseIsEmpty(t *testing.T) {
172
173 engineTestSuite := engineTableContentTestSuite{
174 createInputs: []string{
175 "CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );",
176 },
177 insertAndDeleteInputs: []string{
178 "INSERT INTO tb1 VALUES( 'hello', 1, 11, 'q' );",
179 "INSERT INTO tb1 VALUES( 'goodbye', 2, 22, 'w' );",
180 "INSERT INTO tb1 VALUES( 'byebye', 3, 33, 'e' );",
181 },
182 selectInput: "SELECT one, two, three, four FROM tb1 WHERE one IN ('I', 'dont', 'exist', 'anymore');",
183 expectedOutput: [][]string{
184 {"one", "two", "three", "four"},
185 },
186 }
187
188 engineTestSuite.runTestSuite(t)
189}
190
191func TestSelectWithWhereNotContainsButResponseIsEmpty(t *testing.T) {
192

Callers

nothing calls this directly

Calls 1

runTestSuiteMethod · 0.95

Tested by

no test coverage detected