Skip to content

Commit

Permalink
fix: go mod version
Browse files Browse the repository at this point in the history
  • Loading branch information
arsham committed Jun 19, 2024
1 parent 0c152cb commit a2f789e
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Your tests can be checked easily like this:
```go
import (
"github.com/DATA-DOG/go-sqlmock"
"github.com/arsham/dbtools/v3/dbtesting"
"github.com/arsham/dbtools/v4/dbtesting"
)

func TestFoo(t *testing.T) {
Expand Down Expand Up @@ -275,7 +275,7 @@ relevant to the current test), you can use `OkValue`.

```go
import (
"github.com/arsham/dbtools/v3/dbtesting"
"github.com/arsham/dbtools/v4/dbtesting"
"github.com/DATA-DOG/go-sqlmock"
)

Expand All @@ -300,7 +300,7 @@ mock.ExpectExec("INSERT INTO life .+").
### Usage

```go
import "github.com/arsham/dbtools/v3/dbtesting"
import "github.com/arsham/dbtools/v4/dbtesting"

func TestFoo(t *testing.T) {
spec.Run(t, "Foo", func(t *testing.T, when spec.G, it spec.S) {
Expand Down
2 changes: 1 addition & 1 deletion db_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/arsham/dbtools/v3"
"github.com/arsham/dbtools/v4"
"github.com/arsham/retry/v3"
"github.com/jackc/pgx/v5"
"github.com/stretchr/testify/assert"
Expand Down
4 changes: 2 additions & 2 deletions db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/arsham/dbtools/v3"
"github.com/arsham/dbtools/v3/mocks"
"github.com/arsham/dbtools/v4"
"github.com/arsham/dbtools/v4/mocks"
"github.com/arsham/retry/v3"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgxpool"
Expand Down
2 changes: 1 addition & 1 deletion dbtesting/dbtesting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/DATA-DOG/go-sqlmock"
"github.com/arsham/dbtools/v3/dbtesting"
"github.com/arsham/dbtools/v4/dbtesting"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion dbtesting/mocha_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

"github.com/arsham/dbtools/v3/dbtesting"
"github.com/arsham/dbtools/v4/dbtesting"
"github.com/sclevine/spec"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/arsham/dbtools/v3
module github.com/arsham/dbtools/v4

go 1.22.0

Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/genproto/googleapis/api v0.0.0-20240610135401-a8a62080eff3 h1:QW9+G6Fir4VcRXVH8x3LilNAb6cxBGLa6+GM4hRwexE=
google.golang.org/genproto/googleapis/api v0.0.0-20240610135401-a8a62080eff3/go.mod h1:kdrSS/OiLkPrNUpzD4aHgCq2rVuC/YRxok32HXZ4vRE=
google.golang.org/genproto/googleapis/api v0.0.0-20240617180043-68d350f18fd4 h1:MuYw1wJzT+ZkybKfaOXKp5hJiZDn2iHaXRw0mRYdHSc=
google.golang.org/genproto/googleapis/api v0.0.0-20240617180043-68d350f18fd4/go.mod h1:px9SlOOZBg1wM1zdnr8jEL4CNGUBZ+ZKYtNPApNQc4c=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240617180043-68d350f18fd4 h1:Di6ANFilr+S60a4S61ZM00vLdw0IrQOSMS2/6mrnOU0=
Expand Down
2 changes: 1 addition & 1 deletion helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/arsham/dbtools/v3/mocks"
"github.com/arsham/dbtools/v4/mocks"
"github.com/arsham/retry/v3"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/pkg/ioutils"
Expand Down
2 changes: 1 addition & 1 deletion mocks/db_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a2f789e

Please sign in to comment.