示例#1
0
func (*Dependencies) TestPackageDependencies(c *gc.C) {
	// This test is to ensure we don't bring in dependencies without thinking.
	// Looking at the "environs/config", it is just for JujuHome.  This should
	// really be moved into "juju/osenv".
	c.Assert(coretesting.FindJujuCoreImports(c, "github.com/juju/core/cmd"),
		jc.DeepEquals,
		[]string{"juju/arch", "juju/osenv", "names", "utils", "version"})
}
示例#2
0
文件: tools_test.go 项目: jkary/core
func (t *ToolsSuite) TestPackageDependencies(c *gc.C) {
	// This test is to ensure we don't bring in dependencies on state, environ
	// or any of the other bigger packages that'll drag in yet more dependencies.
	// Only imports that start with "github.com/juju/core" are checked, and the
	// resulting slice has that prefix removed to keep the output short.
	c.Assert(testing.FindJujuCoreImports(c, "github.com/juju/core/agent/tools"),
		gc.DeepEquals,
		[]string{"juju/arch", "tools", "utils/set", "version"})
}
示例#3
0
// TODO (frankban): remove this test once juju-core/utils is on Github.
func (*importSuite) TestTemporaryDependencies(c *gc.C) {
	c.Assert(coretesting.FindJujuCoreImports(c, "github.com/juju/core/juju/osenv"),
		gc.DeepEquals, []string{"utils"})
}