Skip to content

Commit

Permalink
Update tests to use v2
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Matczuk <[email protected]>
  • Loading branch information
mmatczuk committed Apr 29, 2020
1 parent e90337b commit cea42f1
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"os"
"testing"

"github.com/scylladb/gocqlx"
. "github.com/scylladb/gocqlx/gocqlxtest"
"github.com/scylladb/gocqlx/qb"
"github.com/scylladb/gocqlx/v2"
. "github.com/scylladb/gocqlx/v2/gocqlxtest"
"github.com/scylladb/gocqlx/v2/qb"
)

type benchPerson struct {
Expand Down
4 changes: 2 additions & 2 deletions doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package gocqlx_test

import (
"github.com/gocql/gocql"
"github.com/scylladb/gocqlx"
"github.com/scylladb/gocqlx/qb"
"github.com/scylladb/gocqlx/v2"
"github.com/scylladb/gocqlx/v2/qb"
)

func ExampleSession() {
Expand Down
8 changes: 4 additions & 4 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"time"

"github.com/gocql/gocql"
"github.com/scylladb/gocqlx"
"github.com/scylladb/gocqlx/gocqlxtest"
"github.com/scylladb/gocqlx/qb"
"github.com/scylladb/gocqlx/table"
"github.com/scylladb/gocqlx/v2"
"github.com/scylladb/gocqlx/v2/gocqlxtest"
"github.com/scylladb/gocqlx/v2/qb"
"github.com/scylladb/gocqlx/v2/table"
"golang.org/x/sync/errgroup"
)

Expand Down
2 changes: 1 addition & 1 deletion gocqlxtest/gocqlxtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"time"

"github.com/gocql/gocql"
"github.com/scylladb/gocqlx"
"github.com/scylladb/gocqlx/v2"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions iterx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"github.com/gocql/gocql"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/scylladb/gocqlx"
. "github.com/scylladb/gocqlx/gocqlxtest"
"github.com/scylladb/gocqlx/qb"
"github.com/scylladb/gocqlx/v2"
. "github.com/scylladb/gocqlx/v2/gocqlxtest"
"github.com/scylladb/gocqlx/v2/qb"
"gopkg.in/inf.v0"
)

Expand Down
2 changes: 1 addition & 1 deletion migrate/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package migrate
import (
"context"

"github.com/scylladb/gocqlx"
"github.com/scylladb/gocqlx/v2"
)

// CallbackEvent specifies type of the event when calling CallbackFunc.
Expand Down
4 changes: 2 additions & 2 deletions migrate/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"time"

"github.com/gocql/gocql"
"github.com/scylladb/gocqlx"
"github.com/scylladb/gocqlx/qb"
"github.com/scylladb/gocqlx/v2"
"github.com/scylladb/gocqlx/v2/qb"
)

// DefaultAwaitSchemaAgreement controls whether checking for cluster schema agreement
Expand Down
6 changes: 3 additions & 3 deletions migrate/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"strings"
"testing"

"github.com/scylladb/gocqlx"
. "github.com/scylladb/gocqlx/gocqlxtest"
"github.com/scylladb/gocqlx/migrate"
"github.com/scylladb/gocqlx/v2"
. "github.com/scylladb/gocqlx/v2/gocqlxtest"
"github.com/scylladb/gocqlx/v2/migrate"
)

var migrateSchema = `
Expand Down
2 changes: 1 addition & 1 deletion queryx_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package gocqlx_test
import (
"testing"

"github.com/scylladb/gocqlx"
"github.com/scylladb/gocqlx/v2"
)

func BenchmarkCompileNamedQuery(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package table

import "github.com/scylladb/gocqlx/qb"
import "github.com/scylladb/gocqlx/v2/qb"

// Metadata represents table schema.
type Metadata struct {
Expand Down
2 changes: 1 addition & 1 deletion table/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/scylladb/gocqlx/qb"
"github.com/scylladb/gocqlx/v2/qb"
)

func TestTableGet(t *testing.T) {
Expand Down

0 comments on commit cea42f1

Please sign in to comment.