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

Method TestGetAll

toapply_test.go:20–26  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

18var _ = Suite(&ToApplyMigrateSuite{})
19
20func (*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
28func (*ToApplyMigrateSuite) TestGetAbc(c *C) {
29 toApply := ToApply(toapplyMigrations, "abc", Up)

Callers

nothing calls this directly

Calls 1

ToApplyFunction · 0.85

Tested by

no test coverage detected