mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-24 12:49:51 +08:00
Test cleanup.
Initialize in main utils_test.go file and name test functions match package names.
This commit is contained in:
committed by
Russell Jones
parent
f42458f8b7
commit
df9962d572
@@ -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 {
|
||||
}
|
||||
|
||||
|
||||
@@ -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{}
|
||||
|
||||
|
||||
@@ -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{}
|
||||
|
||||
|
||||
@@ -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{}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user