github.com/juju/juju@v0.0.0-20240327075706-a90865de2538/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/paths", 43 "core/relation", 44 "core/resources", 45 "core/secrets", 46 "core/status", 47 "core/watcher", 48 "docker", 49 "environs/context", 50 "feature", 51 "proxy", 52 "rpc", 53 "rpc/jsoncodec", 54 "rpc/params", 55 "storage", 56 "tools", 57 "utils/proxy", 58 "version", 59 }) 60 }