github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/core/constraints/package_test.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package constraints_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/constraints")
    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{"core/instance", "core/status"})
    29  }