Address review comments
-Fix whitespace on imports -Fix test case naming Signed-off-by: Jack Baines <jack.baines@uk.ibm.com>
This commit is contained in:
parent
908b771086
commit
d15832a4c2
@ -26,11 +26,10 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/docker/distribution/registry/api/errcode"
|
|
||||||
|
|
||||||
"github.com/containerd/containerd/errdefs"
|
"github.com/containerd/containerd/errdefs"
|
||||||
"github.com/containerd/containerd/images"
|
"github.com/containerd/containerd/images"
|
||||||
"github.com/containerd/containerd/log"
|
"github.com/containerd/containerd/log"
|
||||||
|
"github.com/docker/distribution/registry/api/errcode"
|
||||||
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
@ -99,8 +99,8 @@ func TestFetcherOpen(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// New set of test to test new error cases
|
// New set of tests to test new error cases
|
||||||
func Test_dockerFetcher_open(t *testing.T) {
|
func TestDockerFetcherOpen(t *testing.T) {
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
mockedStatus int
|
mockedStatus int
|
||||||
|
Loading…
Reference in New Issue
Block a user