Пример #1
0
func (s *Suite) mustMakeAPI(c *gc.C) *migrationminion.API {
	api, err := migrationminion.NewAPI(nil, s.resources, s.authorizer)
	c.Assert(err, jc.ErrorIsNil)
	return api
}
Пример #2
0
func (s *Suite) makeAPI() (*migrationminion.API, error) {
	return migrationminion.NewAPI(nil, s.resources, s.authorizer)
}