Skip to content

Commit

Permalink
feat: add dbtest to facility db test (#3768)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Dec 9, 2023
1 parent 8fd710d commit 22c98be
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion core/stores/sqlc/cachedsql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/core/stat"
"github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/core/stores/dbtest"
"github.com/zeromicro/go-zero/core/stores/redis"
"github.com/zeromicro/go-zero/core/stores/redis/redistest"
"github.com/zeromicro/go-zero/core/stores/sqlx"
"github.com/zeromicro/go-zero/core/syncx"
"github.com/zeromicro/go-zero/internal/dbtest"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion core/stores/sqlx/bulkinserter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/DATA-DOG/go-sqlmock"
"github.com/stretchr/testify/assert"
"github.com/zeromicro/go-zero/internal/dbtest"
"github.com/zeromicro/go-zero/core/stores/dbtest"
)

type mockedConn struct {
Expand Down
2 changes: 1 addition & 1 deletion core/stores/sqlx/orm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/DATA-DOG/go-sqlmock"
"github.com/stretchr/testify/assert"
"github.com/zeromicro/go-zero/internal/dbtest"
"github.com/zeromicro/go-zero/core/stores/dbtest"
)

func TestUnmarshalRowBool(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion core/stores/sqlx/sqlconn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/zeromicro/go-zero/core/breaker"
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/core/stores/dbtest"
"github.com/zeromicro/go-zero/core/trace/tracetest"
"github.com/zeromicro/go-zero/internal/dbtest"
)

const mockedDatasource = "sqlmock"
Expand Down
2 changes: 1 addition & 1 deletion core/stores/sqlx/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/DATA-DOG/go-sqlmock"
"github.com/stretchr/testify/assert"
"github.com/zeromicro/go-zero/core/breaker"
"github.com/zeromicro/go-zero/internal/dbtest"
"github.com/zeromicro/go-zero/core/stores/dbtest"
)

const (
Expand Down
1 change: 1 addition & 0 deletions tools/goctl/model/sql/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -379,3 +379,4 @@ OPTIONS:
| enum | string | sql.NullString |
| set | string | sql.NullString |
| json | string | sql.NullString |

0 comments on commit 22c98be

Please sign in to comment.