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

Method runTestSuite

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

Source from the content-addressed store, hash-verified

954}
955
956func (engineTestSuite *engineDBContentTestSuite) runTestSuite(t *testing.T) {
957 sequences := getSequences(inputsToString(engineTestSuite.inputs))
958 engine := New()
959 engine.Evaluate(sequences)
960
961 if len(engine.Tables) != len(engineTestSuite.expectedTableNames) {
962 t.Fatalf("Number of tables is incorrect, should be %d, got %d", len(engineTestSuite.expectedTableNames), len(engine.Tables))
963 }
964
965 for _, tableName := range engineTestSuite.expectedTableNames {
966 if engine.Tables[tableName] == nil {
967 t.Fatalf("Expected table '%s' does not exist", tableName)
968 }
969 }
970}
971
972type engineTableContentTestSuite struct {
973 createInputs []string

Callers 2

TestCreateFunction · 0.95
TestDropFunction · 0.95

Calls 4

getSequencesFunction · 0.85
inputsToStringFunction · 0.85
EvaluateMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected