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

Function TestSelectWithWhereEqualToTrue

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

Source from the content-addressed store, hash-verified

274}
275
276func TestSelectWithWhereEqualToTrue(t *testing.T) {
277
278 engineTestSuite := engineTableContentTestSuite{
279 createInputs: []string{
280 "CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );",
281 },
282 insertAndDeleteInputs: []string{
283 "INSERT INTO tb1 VALUES( 'hello', 1, 11, 'q' );",
284 "INSERT INTO tb1 VALUES( 'goodbye', 2, 22, 'w' );",
285 "INSERT INTO tb1 VALUES( 'goodbye', 3, 33, 'e' );",
286 },
287 selectInput: "SELECT * FROM tb1 WHERE TRUE;",
288 expectedOutput: [][]string{
289 {"one", "two", "three", "four"},
290 {"hello", "1", "11", "q"},
291 {"goodbye", "2", "22", "w"},
292 {"goodbye", "3", "33", "e"},
293 },
294 }
295
296 engineTestSuite.runTestSuite(t)
297}
298
299func TestSelectWithWhereEqualToFalse(t *testing.T) {
300

Callers

nothing calls this directly

Calls 1

runTestSuiteMethod · 0.95

Tested by

no test coverage detected