chg: [test] move config test
parent
2fd1cdf3ea
commit
7a4ba5405e
|
@ -1,9 +1,7 @@
|
|||
package main
|
||||
package config
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
config "github.com/D4-project/d4-golang-utils/config"
|
||||
)
|
||||
|
||||
var testCases = []struct {
|
||||
|
@ -29,7 +27,7 @@ var testCases = []struct {
|
|||
func TestIsNet(t *testing.T) {
|
||||
for _, tc := range testCases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
b, _ := config.IsNet(tc.str)
|
||||
b, _ := IsNet(tc.str)
|
||||
if b != tc.expected {
|
||||
t.Fail()
|
||||
}
|
5
go.mod
5
go.mod
|
@ -2,4 +2,7 @@ module github.com/D4-project/d4-golang-utils
|
|||
|
||||
go 1.12
|
||||
|
||||
require github.com/gofrs/uuid v3.2.0+incompatible
|
||||
require (
|
||||
github.com/gofrs/uuid v3.2.0+incompatible
|
||||
github.com/gomodule/redigo v2.0.0+incompatible
|
||||
)
|
||||
|
|
2
go.sum
2
go.sum
|
@ -1,2 +1,4 @@
|
|||
github.com/gofrs/uuid v3.2.0+incompatible h1:y12jRkkFxsd7GpqdSZ+/KCs/fJbqpEXSGd4+jfEaewE=
|
||||
github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
|
||||
github.com/gomodule/redigo v2.0.0+incompatible h1:K/R+8tc58AaqLkqG2Ol3Qk+DR/TlNuhuh457pBFPtt0=
|
||||
github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4=
|
||||
|
|
Loading…
Reference in New Issue