Update tests to use v2
Signed-off-by: Michał Matczuk <michal@scylladb.com>
This commit is contained in:
committed by
Michal Jan Matczuk
parent
e90337b9ca
commit
cea42f14c7
@@ -11,9 +11,9 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/scylladb/gocqlx"
|
"github.com/scylladb/gocqlx/v2"
|
||||||
. "github.com/scylladb/gocqlx/gocqlxtest"
|
. "github.com/scylladb/gocqlx/v2/gocqlxtest"
|
||||||
"github.com/scylladb/gocqlx/qb"
|
"github.com/scylladb/gocqlx/v2/qb"
|
||||||
)
|
)
|
||||||
|
|
||||||
type benchPerson struct {
|
type benchPerson struct {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ package gocqlx_test
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gocql/gocql"
|
"github.com/gocql/gocql"
|
||||||
"github.com/scylladb/gocqlx"
|
"github.com/scylladb/gocqlx/v2"
|
||||||
"github.com/scylladb/gocqlx/qb"
|
"github.com/scylladb/gocqlx/v2/qb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleSession() {
|
func ExampleSession() {
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gocql/gocql"
|
"github.com/gocql/gocql"
|
||||||
"github.com/scylladb/gocqlx"
|
"github.com/scylladb/gocqlx/v2"
|
||||||
"github.com/scylladb/gocqlx/gocqlxtest"
|
"github.com/scylladb/gocqlx/v2/gocqlxtest"
|
||||||
"github.com/scylladb/gocqlx/qb"
|
"github.com/scylladb/gocqlx/v2/qb"
|
||||||
"github.com/scylladb/gocqlx/table"
|
"github.com/scylladb/gocqlx/v2/table"
|
||||||
"golang.org/x/sync/errgroup"
|
"golang.org/x/sync/errgroup"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gocql/gocql"
|
"github.com/gocql/gocql"
|
||||||
"github.com/scylladb/gocqlx"
|
"github.com/scylladb/gocqlx/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ import (
|
|||||||
"github.com/gocql/gocql"
|
"github.com/gocql/gocql"
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/google/go-cmp/cmp/cmpopts"
|
"github.com/google/go-cmp/cmp/cmpopts"
|
||||||
"github.com/scylladb/gocqlx"
|
"github.com/scylladb/gocqlx/v2"
|
||||||
. "github.com/scylladb/gocqlx/gocqlxtest"
|
. "github.com/scylladb/gocqlx/v2/gocqlxtest"
|
||||||
"github.com/scylladb/gocqlx/qb"
|
"github.com/scylladb/gocqlx/v2/qb"
|
||||||
"gopkg.in/inf.v0"
|
"gopkg.in/inf.v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ package migrate
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/scylladb/gocqlx"
|
"github.com/scylladb/gocqlx/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CallbackEvent specifies type of the event when calling CallbackFunc.
|
// CallbackEvent specifies type of the event when calling CallbackFunc.
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gocql/gocql"
|
"github.com/gocql/gocql"
|
||||||
"github.com/scylladb/gocqlx"
|
"github.com/scylladb/gocqlx/v2"
|
||||||
"github.com/scylladb/gocqlx/qb"
|
"github.com/scylladb/gocqlx/v2/qb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DefaultAwaitSchemaAgreement controls whether checking for cluster schema agreement
|
// DefaultAwaitSchemaAgreement controls whether checking for cluster schema agreement
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/scylladb/gocqlx"
|
"github.com/scylladb/gocqlx/v2"
|
||||||
. "github.com/scylladb/gocqlx/gocqlxtest"
|
. "github.com/scylladb/gocqlx/v2/gocqlxtest"
|
||||||
"github.com/scylladb/gocqlx/migrate"
|
"github.com/scylladb/gocqlx/v2/migrate"
|
||||||
)
|
)
|
||||||
|
|
||||||
var migrateSchema = `
|
var migrateSchema = `
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ package gocqlx_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/scylladb/gocqlx"
|
"github.com/scylladb/gocqlx/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
func BenchmarkCompileNamedQuery(b *testing.B) {
|
func BenchmarkCompileNamedQuery(b *testing.B) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
package table
|
package table
|
||||||
|
|
||||||
import "github.com/scylladb/gocqlx/qb"
|
import "github.com/scylladb/gocqlx/v2/qb"
|
||||||
|
|
||||||
// Metadata represents table schema.
|
// Metadata represents table schema.
|
||||||
type Metadata struct {
|
type Metadata struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/scylladb/gocqlx/qb"
|
"github.com/scylladb/gocqlx/v2/qb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestTableGet(t *testing.T) {
|
func TestTableGet(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user