(t *testing.T)
| 954 | } |
| 955 | |
| 956 | func (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 | |
| 972 | type engineTableContentTestSuite struct { |
| 973 | createInputs []string |
no test coverage detected