Skip to content

Commit f2edc6f

Browse files
committed
vendor: update gotest.tools v3.0.2
full diff: gotestyourself/gotest.tools@v2.3.0...v3.0.2 Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 4d24281 commit f2edc6f

40 files changed

+154
-106
lines changed

cio/io_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ import (
3333

3434
"github.com/containerd/fifo"
3535
"github.com/google/go-cmp/cmp/cmpopts"
36-
"gotest.tools/assert"
37-
is "gotest.tools/assert/cmp"
36+
"gotest.tools/v3/assert"
37+
is "gotest.tools/v3/assert/cmp"
3838
)
3939

4040
func assertHasPrefix(t *testing.T, s, prefix string) {

cio/io_unix_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"path/filepath"
2424
"testing"
2525

26-
"gotest.tools/assert"
26+
"gotest.tools/v3/assert"
2727
)
2828

2929
func TestOpenFifos(t *testing.T) {

cio/io_windows_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package cio
2121
import (
2222
"testing"
2323

24-
"gotest.tools/assert"
24+
"gotest.tools/v3/assert"
2525
)
2626

2727
func TestNewFifoSetInDir_NoTerminal(t *testing.T) {

client_ttrpc_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/containerd/containerd/pkg/ttrpcutil"
2727
"github.com/containerd/ttrpc"
2828
"github.com/gogo/protobuf/types"
29-
"gotest.tools/assert"
29+
"gotest.tools/v3/assert"
3030
)
3131

3232
func TestClientTTRPC_New(t *testing.T) {

content/helpers_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626

2727
"github.com/containerd/containerd/errdefs"
2828
"github.com/opencontainers/go-digest"
29-
"gotest.tools/assert"
30-
is "gotest.tools/assert/cmp"
29+
"gotest.tools/v3/assert"
30+
is "gotest.tools/v3/assert/cmp"
3131
)
3232

3333
type copySource struct {

content/local/store_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import (
4040

4141
"github.com/opencontainers/go-digest"
4242
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
43-
"gotest.tools/assert"
43+
"gotest.tools/v3/assert"
4444
)
4545

4646
type memoryLabelStore struct {

content/testsuite/testsuite.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
digest "github.com/opencontainers/go-digest"
3737
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
3838
"github.com/pkg/errors"
39-
"gotest.tools/assert"
39+
"gotest.tools/v3/assert"
4040
)
4141

4242
const (

gc/scheduler/scheduler_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"time"
2424

2525
"github.com/containerd/containerd/gc"
26-
"gotest.tools/assert"
26+
"gotest.tools/v3/assert"
2727
)
2828

2929
func TestPauseThreshold(t *testing.T) {

log/context_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121
"testing"
2222

23-
"gotest.tools/assert"
23+
"gotest.tools/v3/assert"
2424
)
2525

2626
func TestLoggerContext(t *testing.T) {

mount/lookup_linux_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
// so we use continuity/testutil instead.
3232
"github.com/containerd/continuity/testutil"
3333
"github.com/containerd/continuity/testutil/loopback"
34-
"gotest.tools/assert"
34+
"gotest.tools/v3/assert"
3535
)
3636

3737
func checkLookup(t *testing.T, fsType, mntPoint, dir string) {

pkg/testutil/helpers_unix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"testing"
2525

2626
"github.com/containerd/containerd/mount"
27-
"gotest.tools/assert"
27+
"gotest.tools/v3/assert"
2828
)
2929

3030
// Unmount unmounts a given mountPoint and sets t.Error if it fails

remotes/docker/fetcher_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"testing"
3030

3131
"github.com/pkg/errors"
32-
"gotest.tools/assert"
32+
"gotest.tools/v3/assert"
3333
)
3434

3535
func TestFetcherOpen(t *testing.T) {

remotes/docker/scope_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"testing"
2222

2323
"github.com/containerd/containerd/reference"
24-
"gotest.tools/assert"
25-
"gotest.tools/assert/cmp"
24+
"gotest.tools/v3/assert"
25+
"gotest.tools/v3/assert/cmp"
2626
)
2727

2828
func TestRepositoryScope(t *testing.T) {

services/server/config/config_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"sort"
2424
"testing"
2525

26-
"gotest.tools/assert"
26+
"gotest.tools/v3/assert"
2727

2828
"github.com/containerd/containerd/plugin"
2929
)

services/server/server_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"testing"
2121

2222
srvconfig "github.com/containerd/containerd/services/server/config"
23-
"gotest.tools/assert"
24-
is "gotest.tools/assert/cmp"
23+
"gotest.tools/v3/assert"
24+
is "gotest.tools/v3/assert/cmp"
2525
)
2626

2727
func TestCreateTopLevelDirectoriesErrorsWithSamePathForRootAndState(t *testing.T) {

snapshots/benchsuite/benchmark_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
"github.com/containerd/continuity/fs/fstest"
3333
"github.com/pkg/errors"
3434
"github.com/sirupsen/logrus"
35-
"gotest.tools/assert"
35+
"gotest.tools/v3/assert"
3636

3737
"github.com/containerd/containerd/mount"
3838
"github.com/containerd/containerd/snapshots"

snapshots/devmapper/config_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525

2626
"github.com/BurntSushi/toml"
2727
"github.com/hashicorp/go-multierror"
28-
"gotest.tools/assert"
29-
is "gotest.tools/assert/cmp"
28+
"gotest.tools/v3/assert"
29+
is "gotest.tools/v3/assert/cmp"
3030
)
3131

3232
func TestLoadConfig(t *testing.T) {

snapshots/devmapper/dmsetup/dmsetup_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626

2727
"github.com/docker/go-units"
2828
"golang.org/x/sys/unix"
29-
"gotest.tools/assert"
30-
is "gotest.tools/assert/cmp"
29+
"gotest.tools/v3/assert"
30+
is "gotest.tools/v3/assert/cmp"
3131

3232
"github.com/containerd/containerd/pkg/testutil"
3333
"github.com/containerd/containerd/snapshots/devmapper/losetup"

snapshots/devmapper/losetup/losetup_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525

2626
"github.com/docker/go-units"
2727
"golang.org/x/sys/unix"
28-
"gotest.tools/assert"
29-
is "gotest.tools/assert/cmp"
28+
"gotest.tools/v3/assert"
29+
is "gotest.tools/v3/assert/cmp"
3030

3131
"github.com/containerd/containerd/pkg/testutil"
3232
)

snapshots/devmapper/metadata_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828

2929
"github.com/pkg/errors"
3030
"go.etcd.io/bbolt"
31-
"gotest.tools/assert"
32-
is "gotest.tools/assert/cmp"
31+
"gotest.tools/v3/assert"
32+
is "gotest.tools/v3/assert/cmp"
3333
)
3434

3535
var (

snapshots/devmapper/pool_device_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
"github.com/containerd/containerd/snapshots/devmapper/losetup"
3535
"github.com/docker/go-units"
3636
"github.com/sirupsen/logrus"
37-
"gotest.tools/assert"
37+
"gotest.tools/v3/assert"
3838
)
3939

4040
const (

snapshots/devmapper/snapshotter_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"github.com/containerd/continuity/fs/fstest"
3131
"github.com/hashicorp/go-multierror"
3232
"github.com/sirupsen/logrus"
33-
"gotest.tools/assert"
33+
"gotest.tools/v3/assert"
3434

3535
"github.com/containerd/containerd/mount"
3636
"github.com/containerd/containerd/namespaces"

snapshots/storage/metastore_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828
"github.com/containerd/containerd/snapshots"
2929
"github.com/google/go-cmp/cmp"
3030
"github.com/pkg/errors"
31-
"gotest.tools/assert"
32-
is "gotest.tools/assert/cmp"
31+
"gotest.tools/v3/assert"
32+
is "gotest.tools/v3/assert/cmp"
3333
)
3434

3535
type testFunc func(context.Context, *testing.T, *MetaStore)

snapshots/testsuite/testsuite.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import (
3434
"github.com/containerd/containerd/pkg/testutil"
3535
"github.com/containerd/containerd/snapshots"
3636
"github.com/containerd/continuity/fs/fstest"
37-
"gotest.tools/assert"
38-
is "gotest.tools/assert/cmp"
37+
"gotest.tools/v3/assert"
38+
is "gotest.tools/v3/assert/cmp"
3939
)
4040

4141
// SnapshotterFunc is used in SnapshotterSuite

sys/oom_unix_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
"testing"
2626
"time"
2727

28-
"gotest.tools/assert"
29-
is "gotest.tools/assert/cmp"
28+
"gotest.tools/v3/assert"
29+
is "gotest.tools/v3/assert/cmp"
3030
)
3131

3232
func TestSetPositiveOomScoreAdjustment(t *testing.T) {

vendor.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ golang.org/x/sys c990c680b611ac1aeb7d8f2af94a
5050
golang.org/x/text 19e51611da83d6be54ddafce4a4af510cb3e9ea4
5151
google.golang.org/genproto e50cd9704f63023d62cd06a1994b98227fc4d21a
5252
google.golang.org/grpc f495f5b15ae7ccda3b38c53a1bfcde4c1a58a2bc # v1.27.1
53-
gotest.tools 1083505acf35a0bd8a696b26837e1fb3187a7a83 # v2.3.0
53+
gotest.tools/v3 bb0d8a963040ea5048dcef1a14d8f8b58a33d4b3 # v3.0.2
5454

5555
# cri dependencies
5656
github.com/containerd/cri c0294ebfe0b4342db85c0faf7727ceb8d8c3afce # master

vendor/gotest.tools/go.mod

-8
This file was deleted.
File renamed without changes.

vendor/gotest.tools/README.md vendor/gotest.tools/v3/README.md

+23-8
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,41 @@
22

33
A collection of packages to augment `testing` and support common patterns.
44

5-
[![GoDoc](https://godoc.org/gotest.tools?status.svg)](https://godoc.org/gotest.tools)
5+
[![GoDoc](https://godoc.org/gotest.tools?status.svg)](http://gotest.tools)
66
[![CircleCI](https://circleci.com/gh/gotestyourself/gotest.tools/tree/master.svg?style=shield)](https://circleci.com/gh/gotestyourself/gotest.tools/tree/master)
77
[![Go Reportcard](https://goreportcard.com/badge/gotest.tools)](https://goreportcard.com/report/gotest.tools)
88

9+
## Usage
10+
11+
With Go modules enabled (go1.11+)
12+
13+
```
14+
$ go get gotest.tools/v3
15+
```
16+
17+
```
18+
import "gotest.tools/v3/assert"
19+
```
20+
21+
To use `gotest.tools` with an older version of Go that does not understand Go
22+
module paths pin to version `v2.3.0`.
23+
924

1025
## Packages
1126

12-
* [assert](http://godoc.org/gotest.tools/assert) -
27+
* [assert](http://gotest.tools/assert) -
1328
compare values and fail the test when a comparison fails
14-
* [env](http://godoc.org/gotest.tools/env) -
29+
* [env](http://gotest.tools/env) -
1530
test code which uses environment variables
16-
* [fs](http://godoc.org/gotest.tools/fs) -
31+
* [fs](http://gotest.tools/fs) -
1732
create temporary files and compare a filesystem tree to an expected value
18-
* [golden](http://godoc.org/gotest.tools/golden) -
33+
* [golden](http://gotest.tools/golden) -
1934
compare large multi-line strings against values frozen in golden files
20-
* [icmd](http://godoc.org/gotest.tools/icmd) -
35+
* [icmd](http://gotest.tools/icmd) -
2136
execute binaries and test the output
22-
* [poll](http://godoc.org/gotest.tools/poll) -
37+
* [poll](http://gotest.tools/poll) -
2338
test asynchronous code by polling until a desired state is reached
24-
* [skip](http://godoc.org/gotest.tools/skip) -
39+
* [skip](http://gotest.tools/skip) -
2540
skip a test and print the source code of the condition used to skip the test
2641

2742
## Related

0 commit comments

Comments
 (0)