8a73673b5b
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
24 lines
529 B
Go
24 lines
529 B
Go
package naive
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/containerd/containerd/snapshot"
|
|
"github.com/containerd/containerd/snapshot/testsuite"
|
|
"github.com/containerd/containerd/testutil"
|
|
)
|
|
|
|
func newSnapshotter(ctx context.Context, root string) (snapshot.Snapshotter, func(), error) {
|
|
snapshotter, err := NewSnapshotter(root)
|
|
if err != nil {
|
|
return nil, nil, err
|
|
}
|
|
|
|
return snapshotter, func() {}, nil
|
|
}
|
|
|
|
func TestNaive(t *testing.T) {
|
|
testutil.RequiresRoot(t)
|
|
testsuite.SnapshotterSuite(t, "Naive", newSnapshotter)
|
|
}
|