(t *testing.T, db sqlplugin.AdminDB, schemaFile string)
| 75 | } |
| 76 | |
| 77 | func LoadSchema(t *testing.T, db sqlplugin.AdminDB, schemaFile string) { |
| 78 | statements, err := persistence.LoadAndSplitQuery([]string{schemaFile}) |
| 79 | if err != nil { |
| 80 | t.Fatalf("Unable to load schema: %s", err) |
| 81 | } |
| 82 | |
| 83 | if rewriter, ok := db.(sqlplugin.SchemaStatementRewriter); ok { |
| 84 | statements = rewriter.RewriteSchemaStatements(statements) |
| 85 | } |
| 86 | |
| 87 | for _, stmt := range statements { |
| 88 | if err = db.Exec(stmt); err != nil { |
| 89 | t.Fatalf("Unable to load schema: %s", err) |
| 90 | } |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | func TestSQLiteExecutionMutableStateStoreSuite(t *testing.T) { |
| 95 | t.Parallel() |
no test coverage detected