(c *C)
| 18 | var _ = Suite(&ToApplyMigrateSuite{}) |
| 19 | |
| 20 | func (*ToApplyMigrateSuite) TestGetAll(c *C) { |
| 21 | toApply := ToApply(toapplyMigrations, "", Up) |
| 22 | c.Assert(toApply, HasLen, 3) |
| 23 | c.Assert(toApply[0], Equals, toapplyMigrations[0]) |
| 24 | c.Assert(toApply[1], Equals, toapplyMigrations[1]) |
| 25 | c.Assert(toApply[2], Equals, toapplyMigrations[2]) |
| 26 | } |
| 27 | |
| 28 | func (*ToApplyMigrateSuite) TestGetAbc(c *C) { |
| 29 | toApply := ToApply(toapplyMigrations, "abc", Up) |