コード例 #1
0
ファイル: upgrader_test.go プロジェクト: CSRedRat/juju-core
// Note: This is really meant as a unit-test, this isn't a test that should
//       need all of the setup we have for this test suite
func (s *upgraderSuite) TestNew(c *C) {
	upgrader := upgrader.New(s.stateAPI)
	c.Assert(upgrader, NotNil)
}
コード例 #2
0
ファイル: state.go プロジェクト: CSRedRat/juju-core
// Upgrader returns access to the Upgrader API
func (st *State) Upgrader() (*upgrader.Upgrader, error) {
	return upgrader.New(st), nil
}