Skip to content

Commit

Permalink
Merge pull request #184 from vdemeester/v3-import
Browse files Browse the repository at this point in the history
Update import alias for major version
  • Loading branch information
dnephin committed Feb 5, 2020
2 parents a1378ce + b67d611 commit ab4a870
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
executor:
name: go/golang
tag: 1.10-alpine
working_directory: /go/src/gotest.tools
working_directory: /go/src/gotest.tools/v3
steps:
- go/install: {package: git}
- go/install-ssh
Expand Down
2 changes: 1 addition & 1 deletion assert/assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ See http://gotest.tools/assert/cmd/gty-migrate-from-testify.
*/
package assert // import "gotest.tools/assert"
package assert // import "gotest.tools/v3/assert"

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion assert/cmp/compare.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*Package cmp provides Comparisons for Assert and Check*/
package cmp // import "gotest.tools/assert/cmp"
package cmp // import "gotest.tools/v3/assert/cmp"

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion assert/opt/opt.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*Package opt provides common go-cmp.Options for use with assert.DeepEqual.
*/
package opt // import "gotest.tools/assert/opt"
package opt // import "gotest.tools/v3/assert/opt"

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion env/env.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*Package env provides functions to test code that read environment variables
or the current working directory.
*/
package env // import "gotest.tools/env"
package env // import "gotest.tools/v3/env"

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion fs/file.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*Package fs provides tools for creating temporary files, and testing the
contents and structure of a directory.
*/
package fs // import "gotest.tools/fs"
package fs // import "gotest.tools/v3/fs"

import (
"io/ioutil"
Expand Down
2 changes: 1 addition & 1 deletion golden/golden.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Golden files can be automatically updated to match new values by running
`go test pkgname -test.update-golden`. To ensure the update is correct
compare the diff of the old expected value to the new expected value.
*/
package golden // import "gotest.tools/golden"
package golden // import "gotest.tools/v3/golden"

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion icmd/command.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*Package icmd executes binaries and provides convenient assertions for testing the results.
*/
package icmd // import "gotest.tools/icmd"
package icmd // import "gotest.tools/v3/icmd"

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion internal/difflib/difflib.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Original source: https://github.com/pmezard/go-difflib
This file is trimmed to only the parts used by this repository.
*/
package difflib // import "gotest.tools/internal/difflib"
package difflib // import "gotest.tools/v3/internal/difflib"

func min(a, b int) int {
if a < b {
Expand Down
2 changes: 1 addition & 1 deletion internal/format/format.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package format // import "gotest.tools/internal/format"
package format // import "gotest.tools/v3/internal/format"

import "fmt"

Expand Down
2 changes: 1 addition & 1 deletion internal/maint/maint.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package maint // import "gotest.tools/internal/maint"
package maint // import "gotest.tools/v3/internal/maint"

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion internal/source/source.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package source // import "gotest.tools/internal/source"
package source // import "gotest.tools/v3/internal/source"

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion pkg.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*Package gotesttools is a collection of packages to augment `testing` and
support common patterns.
*/
package gotesttools // import "gotest.tools"
package gotesttools // import "gotest.tools/v3"
2 changes: 1 addition & 1 deletion poll/poll.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*Package poll provides tools for testing asynchronous code.
*/
package poll // import "gotest.tools/poll"
package poll // import "gotest.tools/v3/poll"

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion skip/skip.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*Package skip provides functions for skipping a test and printing the source code
of the condition used to skip the test.
*/
package skip // import "gotest.tools/skip"
package skip // import "gotest.tools/v3/skip"

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion x/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
compatibility requirements. Packages in this namespace may contain backwards
incompatible changes within the same major version.
*/
package x // import "gotest.tools/x"
package x // import "gotest.tools/v3/x"
2 changes: 1 addition & 1 deletion x/subtest/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ provides a testing.TB, and context.Context.
This package was inspired by github.com/frankban/quicktest.
*/
package subtest // import "gotest.tools/x/subtest"
package subtest // import "gotest.tools/v3/x/subtest"

import (
"context"
Expand Down

0 comments on commit ab4a870

Please sign in to comment.