Test cleanup.

Initialize in main utils_test.go file and name test functions match
package names.
This commit is contained in:
Russell Jones
2019-09-03 13:44:20 -07:00
committed by Russell Jones
parent f42458f8b7
commit df9962d572
5 changed files with 6 additions and 6 deletions
-3
View File
@@ -19,14 +19,11 @@ package utils
import (
"net"
"strings"
"testing"
. "gopkg.in/check.v1"
"gopkg.in/yaml.v2"
)
func TestAddrStruct(t *testing.T) { TestingT(t) }
type AddrTestSuite struct {
}
+1 -1
View File
@@ -26,7 +26,7 @@ import (
"gopkg.in/check.v1"
)
func Test(t *testing.T) { check.TestingT(t) }
func TestParse(t *testing.T) { check.TestingT(t) }
type ParseSuite struct{}
+1 -1
View File
@@ -26,7 +26,7 @@ import (
"gopkg.in/check.v1"
)
func Test(t *testing.T) { check.TestingT(t) }
func TestProxy(t *testing.T) { check.TestingT(t) }
type ProxySuite struct{}
+1 -1
View File
@@ -31,7 +31,7 @@ import (
"gopkg.in/check.v1"
)
func Test(t *testing.T) { check.TestingT(t) }
func TestSocks(t *testing.T) { check.TestingT(t) }
type SOCKSSuite struct{}
+3
View File
@@ -22,6 +22,7 @@ import (
"net/url"
"path/filepath"
"strings"
"testing"
"time"
"github.com/gravitational/teleport"
@@ -31,6 +32,8 @@ import (
"gopkg.in/check.v1"
)
func TestUtils(t *testing.T) { check.TestingT(t) }
type UtilsSuite struct {
}