Skip to content

Commit cba200f

Browse files
committed
Replace tap-go import path
Signed-off-by: Muyassarov, Feruzjon <[email protected]>
1 parent b6301ac commit cba200f

File tree

72 files changed

+84
-350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+84
-350
lines changed

cmd/runtimetest/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"strings"
1515
"syscall"
1616

17-
"github.com/mndrix/tap-go"
1817
rspec "github.com/opencontainers/runtime-spec/specs-go"
18+
"github.com/opencontainers/runtime-tools/util/tap"
1919
"github.com/sirupsen/logrus"
2020
"github.com/syndtr/gocapability/capability"
2121
"github.com/urfave/cli"

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ require (
66
github.com/blang/semver/v4 v4.0.0
77
github.com/google/uuid v1.3.0
88
github.com/hashicorp/go-multierror v1.1.1
9-
github.com/mndrix/tap-go v0.0.0-20171203230836-629fa407e90b
109
github.com/mrunalp/fileutils v0.5.0
1110
github.com/opencontainers/runtime-spec v1.0.3-0.20220825212826-86290f6a00fb
1211
github.com/opencontainers/selinux v1.9.1
@@ -16,6 +15,7 @@ require (
1615
github.com/urfave/cli v1.19.1
1716
github.com/xeipuuv/gojsonschema v1.2.0
1817
golang.org/x/sys v0.0.0-20191115151921-52ab43148777
18+
gopkg.in/yaml.v2 v2.4.0
1919
)
2020

2121
require (
@@ -24,5 +24,4 @@ require (
2424
github.com/pmezard/go-difflib v1.0.0 // indirect
2525
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
2626
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
27-
gopkg.in/yaml.v2 v2.4.0 // indirect
2827
)

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/U
99
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
1010
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
1111
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
12-
github.com/mndrix/tap-go v0.0.0-20171203230836-629fa407e90b h1:Ga1nclDSe8gOw37MVLMhfu2QKWtD6gvtQ298zsKVh8g=
13-
github.com/mndrix/tap-go v0.0.0-20171203230836-629fa407e90b/go.mod h1:pzzDgJWZ34fGzaAZGFW22KVZDfyrYW+QABMrWnJBnSs=
1412
github.com/mrunalp/fileutils v0.5.0 h1:NKzVxiH7eSk+OQ4M+ZYW1K6h27RUV3MI6NUTsHhU6Z4=
1513
github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ=
1614
github.com/opencontainers/runtime-spec v1.0.3-0.20220825212826-86290f6a00fb h1:1xSVPOd7/UA+39/hXEGnBJ13p6JFB0E1EvQFlrRDOXI=

util/tap/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The [Test Anything Protocol](http://testanything.org/) ("TAP") is a text-based
44
interface between tests and a test harness. This package helps Go to generate
55
TAP output.
66

7-
Read the [full package documentation](https://godoc.org/github.com/mndrix/tap-go)
7+
Read the [full package documentation](https://godoc.org/github.com/opencontainers/runtime-tools/util/tap)
88

99
NOTE: This code was originally located at https://github.com/mndrix/tap-go and
10-
migrated to here as thre project was archieved.
10+
migrated to here as the project was archieved.

util/tap/tap.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
// Package tap provides support for automated Test Anything Protocol ("TAP")
22
// tests in Go. For example:
33
//
4-
// package main
4+
// package main
55
//
6-
// import "github.com/mndrix/tap-go"
6+
// import "github.com/opencontainers/runtime-tools/util/tap"
77
//
8-
// func main() {
9-
// t := tap.New()
10-
// t.Header(2)
11-
// t.Ok(true, "first test")
12-
// t.Ok(true, "second test")
13-
// }
8+
// func main() {
9+
// t := tap.New()
10+
// t.Header(2)
11+
// t.Ok(true, "first test")
12+
// t.Ok(true, "second test")
13+
// }
1414
//
1515
// generates the following output
1616
//
17-
// TAP version 13
18-
// 1..2
19-
// ok 1 - first test
20-
// ok 2 - second test
21-
package tap // import "github.com/mndrix/tap-go"
17+
// TAP version 13
18+
// 1..2
19+
// ok 1 - first test
20+
// ok 2 - second test
21+
package tap
2222

2323
import (
2424
"fmt"
2525
"io"
2626
"os"
2727
"strings"
28+
"testing/quick"
2829
)
29-
import "testing/quick"
3030

3131
// T is a type to encapsulate test state. Methods on this type generate TAP
3232
// output.

util/tap/test/auto/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package main
22

3-
import "github.com/mndrix/tap-go"
3+
import "github.com/opencontainers/runtime-tools/util/tap"
44

55
func main() {
66
t := tap.New()

util/tap/test/check/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package main
22

3-
import "github.com/mndrix/tap-go"
3+
import "github.com/opencontainers/runtime-tools/util/tap"
44

55
func main() {
66
add := func(x int) bool { return x+3 > x }

util/tap/test/diagnostic/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"io"
66
"os"
77

8-
tap "github.com/mndrix/tap-go"
8+
tap "github.com/opencontainers/runtime-tools/util/tap"
99
)
1010

1111
func main() {

util/tap/test/failing/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"bytes"
55

6-
"github.com/mndrix/tap-go"
6+
"github.com/opencontainers/runtime-tools/util/tap"
77
)
88

99
func main() {

util/tap/test/known/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package main
22

3-
import "github.com/mndrix/tap-go"
3+
import "github.com/opencontainers/runtime-tools/util/tap"
44

55
func main() {
66
t := tap.New()

0 commit comments

Comments
 (0)