mirror of
https://gitee.com/johng/gf
synced 2026-07-06 21:45:34 +08:00
v2 -> v3
This commit is contained in:
@ -16,6 +16,6 @@ const (
|
||||
ConfigNodeNameServerSecondary = "httpserver" // New version configuration item name support from v2.
|
||||
|
||||
// StackFilterKeyForGoFrame is the stack filtering key for all GoFrame module paths.
|
||||
// Eg: .../pkg/mod/github.com/gogf/gf/v2@v2.0.0-20211011134327-54dd11f51122/debug/gdebug/gdebug_caller.go
|
||||
// Eg: .../pkg/mod/github.com/gogf/gf/v3@v2.0.0-20211011134327-54dd11f51122/debug/gdebug/gdebug_caller.go
|
||||
StackFilterKeyForGoFrame = "github.com/gogf/gf/"
|
||||
)
|
||||
|
||||
@ -11,7 +11,7 @@ import (
|
||||
"reflect"
|
||||
"time"
|
||||
|
||||
"github.com/gogf/gf/v2/internal/reflection"
|
||||
"github.com/gogf/gf/v3/internal/reflection"
|
||||
)
|
||||
|
||||
// iString is used for type assert api for String().
|
||||
|
||||
@ -10,11 +10,11 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/gogf/gf/v2/container/gvar"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/internal/empty"
|
||||
"github.com/gogf/gf/v2/test/gtest"
|
||||
"github.com/gogf/gf/v2/util/gconv"
|
||||
"github.com/gogf/gf/v3/container/gvar"
|
||||
"github.com/gogf/gf/v3/frame/g"
|
||||
"github.com/gogf/gf/v3/internal/empty"
|
||||
"github.com/gogf/gf/v3/test/gtest"
|
||||
"github.com/gogf/gf/v3/util/gconv"
|
||||
)
|
||||
|
||||
type TestInt int
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
package errors
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/internal/command"
|
||||
"github.com/gogf/gf/v3/internal/command"
|
||||
)
|
||||
|
||||
// StackMode is the mode that printing stack information in StackModeBrief or StackModeDetail mode.
|
||||
|
||||
@ -9,8 +9,8 @@ package errors_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gogf/gf/v2/internal/errors"
|
||||
"github.com/gogf/gf/v2/test/gtest"
|
||||
"github.com/gogf/gf/v3/internal/errors"
|
||||
"github.com/gogf/gf/v3/test/gtest"
|
||||
)
|
||||
|
||||
func Test_IsStackModeBrief(t *testing.T) {
|
||||
|
||||
@ -11,10 +11,10 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/gogf/gf/v2/encoding/gurl"
|
||||
"github.com/gogf/gf/v2/internal/empty"
|
||||
"github.com/gogf/gf/v2/text/gstr"
|
||||
"github.com/gogf/gf/v2/util/gconv"
|
||||
"github.com/gogf/gf/v3/encoding/gurl"
|
||||
"github.com/gogf/gf/v3/internal/empty"
|
||||
"github.com/gogf/gf/v3/text/gstr"
|
||||
"github.com/gogf/gf/v3/util/gconv"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -9,10 +9,10 @@ package httputil_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/internal/httputil"
|
||||
"github.com/gogf/gf/v2/test/gtest"
|
||||
"github.com/gogf/gf/v2/text/gstr"
|
||||
"github.com/gogf/gf/v3/frame/g"
|
||||
"github.com/gogf/gf/v3/internal/httputil"
|
||||
"github.com/gogf/gf/v3/test/gtest"
|
||||
"github.com/gogf/gf/v3/text/gstr"
|
||||
)
|
||||
|
||||
func TestBuildParams(t *testing.T) {
|
||||
|
||||
@ -10,8 +10,8 @@
|
||||
package instance
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/container/gmap"
|
||||
"github.com/gogf/gf/v2/encoding/ghash"
|
||||
"github.com/gogf/gf/v3/container/gmap"
|
||||
"github.com/gogf/gf/v3/encoding/ghash"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -9,8 +9,8 @@ package instance_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gogf/gf/v2/internal/instance"
|
||||
"github.com/gogf/gf/v2/test/gtest"
|
||||
"github.com/gogf/gf/v3/internal/instance"
|
||||
"github.com/gogf/gf/v3/test/gtest"
|
||||
)
|
||||
|
||||
func Test_SetGet(t *testing.T) {
|
||||
|
||||
@ -16,8 +16,8 @@ import (
|
||||
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
|
||||
"github.com/gogf/gf/v2/debug/gdebug"
|
||||
"github.com/gogf/gf/v2/internal/utils"
|
||||
"github.com/gogf/gf/v3/debug/gdebug"
|
||||
"github.com/gogf/gf/v3/internal/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
"encoding/json"
|
||||
"io"
|
||||
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"github.com/gogf/gf/v3/errors/gerror"
|
||||
)
|
||||
|
||||
// RawMessage is a raw encoded JSON value.
|
||||
|
||||
@ -9,7 +9,7 @@ package mutex_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gogf/gf/v2/internal/mutex"
|
||||
"github.com/gogf/gf/v3/internal/mutex"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@ -10,9 +10,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/gogf/gf/v2/container/garray"
|
||||
"github.com/gogf/gf/v2/internal/mutex"
|
||||
"github.com/gogf/gf/v2/test/gtest"
|
||||
"github.com/gogf/gf/v3/container/garray"
|
||||
"github.com/gogf/gf/v3/internal/mutex"
|
||||
"github.com/gogf/gf/v3/test/gtest"
|
||||
)
|
||||
|
||||
func TestMutexIsSafe(t *testing.T) {
|
||||
|
||||
@ -10,8 +10,8 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/gogf/gf/v2/internal/reflection"
|
||||
"github.com/gogf/gf/v2/test/gtest"
|
||||
"github.com/gogf/gf/v3/internal/reflection"
|
||||
"github.com/gogf/gf/v3/test/gtest"
|
||||
)
|
||||
|
||||
func Test_OriginValueAndKind(t *testing.T) {
|
||||
|
||||
@ -9,7 +9,7 @@ package rwmutex_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gogf/gf/v2/internal/rwmutex"
|
||||
"github.com/gogf/gf/v3/internal/rwmutex"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@ -10,9 +10,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/gogf/gf/v2/container/garray"
|
||||
"github.com/gogf/gf/v2/internal/rwmutex"
|
||||
"github.com/gogf/gf/v2/test/gtest"
|
||||
"github.com/gogf/gf/v3/container/garray"
|
||||
"github.com/gogf/gf/v3/internal/rwmutex"
|
||||
"github.com/gogf/gf/v3/test/gtest"
|
||||
)
|
||||
|
||||
func TestRWMutexIsSafe(t *testing.T) {
|
||||
|
||||
@ -13,9 +13,9 @@ import (
|
||||
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
|
||||
"github.com/gogf/gf/v2/container/gtype"
|
||||
"github.com/gogf/gf/v2/encoding/gbinary"
|
||||
"github.com/gogf/gf/v2/util/grand"
|
||||
"github.com/gogf/gf/v3/container/gtype"
|
||||
"github.com/gogf/gf/v3/encoding/gbinary"
|
||||
"github.com/gogf/gf/v3/util/grand"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/internal/command"
|
||||
"github.com/gogf/gf/v3/internal/command"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -9,7 +9,7 @@ package utils
|
||||
import (
|
||||
"reflect"
|
||||
|
||||
"github.com/gogf/gf/v2/internal/empty"
|
||||
"github.com/gogf/gf/v3/internal/empty"
|
||||
)
|
||||
|
||||
// IsNil checks whether `value` is nil, especially for interface{} type value.
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
"regexp"
|
||||
"testing"
|
||||
|
||||
"github.com/gogf/gf/v2/internal/utils"
|
||||
"github.com/gogf/gf/v3/internal/utils"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@ -9,11 +9,11 @@ package utils_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gogf/gf/v2/container/gvar"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/internal/utils"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"github.com/gogf/gf/v2/test/gtest"
|
||||
"github.com/gogf/gf/v3/container/gvar"
|
||||
"github.com/gogf/gf/v3/frame/g"
|
||||
"github.com/gogf/gf/v3/internal/utils"
|
||||
"github.com/gogf/gf/v3/os/gtime"
|
||||
"github.com/gogf/gf/v3/test/gtest"
|
||||
)
|
||||
|
||||
func TestVar_IsNil(t *testing.T) {
|
||||
|
||||
@ -12,8 +12,8 @@ import (
|
||||
"testing"
|
||||
"unsafe"
|
||||
|
||||
"github.com/gogf/gf/v2/internal/utils"
|
||||
"github.com/gogf/gf/v2/test/gtest"
|
||||
"github.com/gogf/gf/v3/internal/utils"
|
||||
"github.com/gogf/gf/v3/test/gtest"
|
||||
)
|
||||
|
||||
func Test_ReadCloser(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user