Move testutils to pkg

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2018-05-22 17:08:38 -04:00
parent 927517de36
commit 009ba4d797
19 changed files with 14 additions and 14 deletions

View File

@@ -28,9 +28,9 @@ import (
"testing"
"github.com/containerd/containerd/mount"
"github.com/containerd/containerd/pkg/testutil"
"github.com/containerd/containerd/snapshots"
"github.com/containerd/containerd/snapshots/testsuite"
"github.com/containerd/containerd/testutil"
"github.com/pkg/errors"
"golang.org/x/sys/unix"
)

View File

@@ -21,9 +21,9 @@ import (
"runtime"
"testing"
"github.com/containerd/containerd/pkg/testutil"
"github.com/containerd/containerd/snapshots"
"github.com/containerd/containerd/snapshots/testsuite"
"github.com/containerd/containerd/testutil"
)
func newSnapshotter(ctx context.Context, root string) (snapshots.Snapshotter, func() error, error) {

View File

@@ -24,7 +24,7 @@ import (
"os/exec"
"testing"
"github.com/containerd/containerd/testutil"
"github.com/containerd/containerd/pkg/testutil"
)
func testOverlaySupported(t testing.TB, expected bool, mkfs ...string) {

View File

@@ -28,10 +28,10 @@ import (
"testing"
"github.com/containerd/containerd/mount"
"github.com/containerd/containerd/pkg/testutil"
"github.com/containerd/containerd/snapshots"
"github.com/containerd/containerd/snapshots/storage"
"github.com/containerd/containerd/snapshots/testsuite"
"github.com/containerd/containerd/testutil"
)
func newSnapshotter(ctx context.Context, root string) (snapshots.Snapshotter, func() error, error) {

View File

@@ -22,7 +22,7 @@ import (
// Does not require root but flag must be defined for snapshot tests
_ "github.com/containerd/containerd/testutil"
_ "github.com/containerd/containerd/pkg/testutil"
)
func TestMetastore(t *testing.T) {

View File

@@ -29,8 +29,8 @@ import (
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/mount"
"github.com/containerd/containerd/namespaces"
"github.com/containerd/containerd/pkg/testutil"
"github.com/containerd/containerd/snapshots"
"github.com/containerd/containerd/testutil"
"github.com/containerd/continuity/fs/fstest"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"