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

Function TestSelectWithWhereLogicalOperationAnd

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

Source from the content-addressed store, hash-verified

209}
210
211func TestSelectWithWhereLogicalOperationAnd(t *testing.T) {
212
213 engineTestSuite := engineTableContentTestSuite{
214 createInputs: []string{
215 "CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );",
216 },
217 insertAndDeleteInputs: []string{
218 "INSERT INTO tb1 VALUES( 'hello', 1, 11, 'q' );",
219 "INSERT INTO tb1 VALUES( 'goodbye', NULL, 22, 'w' );",
220 "INSERT INTO tb1 VALUES( 'goodbye', 3, 33, 'e' );",
221 },
222 selectInput: "SELECT * FROM tb1 WHERE one EQUAL 'goodbye' AND two NOT NULL;",
223 expectedOutput: [][]string{
224 {"one", "two", "three", "four"},
225 {"goodbye", "3", "33", "e"},
226 },
227 }
228
229 engineTestSuite.runTestSuite(t)
230}
231
232func TestSelectWithWhereLogicalOperationOR(t *testing.T) {
233

Callers

nothing calls this directly

Calls 1

runTestSuiteMethod · 0.95

Tested by

no test coverage detected