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

Function TestSelectWithWhereLogicalOperationOR

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

Source from the content-addressed store, hash-verified

230}
231
232func TestSelectWithWhereLogicalOperationOR(t *testing.T) {
233
234 engineTestSuite := engineTableContentTestSuite{
235 createInputs: []string{
236 "CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );",
237 },
238 insertAndDeleteInputs: []string{
239 "INSERT INTO tb1 VALUES( 'hello', 1, 11, 'q' );",
240 "INSERT INTO tb1 VALUES( 'goodbye', 2, 22, 'w' );",
241 "INSERT INTO tb1 VALUES( 'goodbye', 3, 33, 'e' );",
242 },
243 selectInput: "SELECT * FROM tb1 WHERE one NOT 'goodbye' OR two EQUAL 3;",
244 expectedOutput: [][]string{
245 {"one", "two", "three", "four"},
246 {"hello", "1", "11", "q"},
247 {"goodbye", "3", "33", "e"},
248 },
249 }
250
251 engineTestSuite.runTestSuite(t)
252}
253
254func TestSelectWithWhereLogicalOperationOROperationAND(t *testing.T) {
255

Callers

nothing calls this directly

Calls 1

runTestSuiteMethod · 0.95

Tested by

no test coverage detected