github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/core/watcher/package_test.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package watcher_test 5 6 import ( 7 stdtesting "testing" 8 9 jc "github.com/juju/testing/checkers" 10 gc "gopkg.in/check.v1" 11 12 coretesting "github.com/juju/juju/testing" 13 ) 14 15 func TestPackage(t *stdtesting.T) { 16 gc.TestingT(t) 17 } 18 19 type ImportTest struct{} 20 21 var _ = gc.Suite(&ImportTest{}) 22 23 func (*ImportTest) TestImports(c *gc.C) { 24 found := coretesting.FindJujuCoreImports(c, "github.com/juju/juju/core/watcher") 25 26 // This package brings in nothing else from outside juju/juju/core 27 c.Assert(found, jc.SameContents, []string{ 28 "core/life", 29 "core/migration", 30 "core/network", 31 "core/resources", 32 "core/secrets", 33 "core/status", 34 // TODO: these have been brought in from migration and this is BAD. 35 "docker", 36 }) 37 38 }