Skip to content

Commit

Permalink
Refactored test package declaration into package_test.
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiamac committed Aug 18, 2016
1 parent 0027dfb commit 4d38ccb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 0 additions & 5 deletions constraints/constraints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"encoding/json"
"fmt"
"strings"
"testing"

jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
Expand All @@ -17,10 +16,6 @@ import (
"github.com/juju/juju/instance"
)

func TestPackage(t *testing.T) {
gc.TestingT(t)
}

type ConstraintsSuite struct{}

var _ = gc.Suite(&ConstraintsSuite{})
Expand Down
14 changes: 14 additions & 0 deletions constraints/package_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2016 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package constraints_test

import (
"testing"

gc "gopkg.in/check.v1"
)

func TestPackage(t *testing.T) {
gc.TestingT(t)
}

0 comments on commit 4d38ccb

Please sign in to comment.