github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/api/package_test.go (about) 1 // Copyright 2023 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package api 5 6 import ( 7 "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 *testing.T) { 16 coretesting.MgoTestPackage(t) 17 } 18 19 type ImportSuite struct{} 20 21 var _ = gc.Suite(&ImportSuite{}) 22 23 func (*ImportSuite) TestImports(c *gc.C) { 24 found := coretesting.FindJujuCoreImports(c, "github.com/juju/juju/api") 25 26 c.Assert(found, jc.SameContents, []string{ 27 "api/agent/keyupdater", 28 "api/base", 29 "api/watcher", 30 "core/arch", 31 "core/base", 32 "core/constraints", 33 "core/devices", 34 "core/facades", 35 "core/instance", 36 "core/life", 37 "core/macaroon", 38 "core/migration", 39 "core/model", 40 "core/network", 41 "core/os", 42 "core/os/ostype", 43 "core/paths", 44 "core/relation", 45 "core/resources", 46 "core/secrets", 47 "core/status", 48 "core/watcher", 49 "docker", 50 "environs/context", 51 "feature", 52 "proxy", 53 "rpc", 54 "rpc/jsoncodec", 55 "rpc/params", 56 "storage", 57 "tools", 58 "utils/proxy", 59 "version", 60 }) 61 }