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

Function TestCreate

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

Source from the content-addressed store, hash-verified

10)
11
12func TestCreate(t *testing.T) {
13 simpleCreateCase := engineDBContentTestSuite{
14 inputs: []string{"CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );"},
15 expectedTableNames: []string{"tb1"},
16 }
17
18 simpleCreateCase.runTestSuite(t)
19
20 multiplyCreationCase := engineDBContentTestSuite{
21 inputs: []string{
22 "CREATE TABLE tb1( one TEXT, two INT, three INT, four TEXT );",
23 "CREATE TABLE tb2( one TEXT, two INT, three INT, four TEXT );",
24 },
25 expectedTableNames: []string{"tb1", "tb2"},
26 }
27
28 multiplyCreationCase.runTestSuite(t)
29
30}
31
32func TestDrop(t *testing.T) {
33 simpleDropCase := engineDBContentTestSuite{

Callers

nothing calls this directly

Calls 1

runTestSuiteMethod · 0.95

Tested by

no test coverage detected