Skip to content

Commit 5952cdc

Browse files
committed
test: Add CURD test cases
1 parent 06bb2e7 commit 5952cdc

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/connect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package tests
22

33
import (
44
"fmt"
5-
"github.com/joho/godotenv"
65
"os"
76

7+
"github.com/joho/godotenv"
88
"gorm.io/driver/mysql"
99
"gorm.io/driver/postgres"
1010
"gorm.io/gorm"

tests/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module tests
33
go 1.24.0
44

55
require (
6-
gitee.com/golang-package/carbon/v2 v2.6.6
6+
github.com/dromara/carbon/v2 v2.6.5
77
github.com/joho/godotenv v1.5.1
88
github.com/stretchr/testify v1.10.0
99
gorm.io/driver/mysql v1.5.7

tests/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package tests
22

33
import (
4-
"gitee.com/golang-package/carbon/v2"
4+
"github.com/dromara/carbon/v2"
55
"gorm.io/gorm"
66
)
77

tests/mysql_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55
"testing"
66

7-
"gitee.com/golang-package/carbon/v2"
7+
"github.com/dromara/carbon/v2"
88
"github.com/stretchr/testify/suite"
99
)
1010

tests/pgsql_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55
"testing"
66

7-
"gitee.com/golang-package/carbon/v2"
7+
"github.com/dromara/carbon/v2"
88
"github.com/stretchr/testify/suite"
99
)
1010

0 commit comments

Comments
 (0)