github.com/juju/juju@v0.0.0-20240327075706-a90865de2538/core/multiwatcher/package_test.go (about)

     1  // Copyright 2019 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package multiwatcher_test
     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  	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/multiwatcher")
    25  
    26  	// This package should only depend on other core packages.
    27  	// If this test fails with a non-core package, please check the dependencies.
    28  	c.Assert(found, jc.SameContents, []string{
    29  		"core/arch",
    30  		"core/constraints",
    31  		"core/instance",
    32  		"core/life",
    33  		"core/model",
    34  		"core/network",
    35  		"core/permission",
    36  		"core/status",
    37  	})
    38  }