chg: [test] move config test

d4forward
Jean-Louis Huynen 2020-04-08 08:19:12 +02:00
parent 2fd1cdf3ea
commit 7a4ba5405e
No known key found for this signature in database
GPG Key ID: 64799157F4BD6B93
3 changed files with 8 additions and 5 deletions

View File

@ -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
View File

@ -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
View File

@ -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=