MCPcopy
hub / github.com/rubenv/sql-migrate / TestRunMigrationEscapeTable

Method TestRunMigrationEscapeTable

migrate_test.go:66–77  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

64}
65
66func (s *SqliteMigrateSuite) TestRunMigrationEscapeTable(c *C) {
67 migrations := &MemoryMigrationSource{
68 Migrations: sqliteMigrations[:1],
69 }
70
71 SetTable(`my migrations`)
72
73 // Executes one migration
74 n, err := Exec(s.Db, "sqlite3", migrations, Up)
75 c.Assert(err, IsNil)
76 c.Assert(n, Equals, 1)
77}
78
79func (s *SqliteMigrateSuite) TestMigrateMultiple(c *C) {
80 migrations := &MemoryMigrationSource{

Callers

nothing calls this directly

Calls 2

SetTableFunction · 0.85
ExecFunction · 0.85

Tested by

no test coverage detected