all: gometalinter (#843)
* kubernetes/reverse: remove deadcode * deadcode in errors and kubernetes removed * unnecessary conversion * constants * proxy: time.Since() * simplications * static check * Disable test/external_test
This commit is contained in:
parent
964f04f443
commit
bcb2eb1ecc
25 changed files with 105 additions and 150 deletions
|
@ -260,23 +260,6 @@ func TestEndpointHostname(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestIpFromPodName(t *testing.T) {
|
||||
var tests = []struct {
|
||||
ip string
|
||||
expected string
|
||||
}{
|
||||
{"10-11-12-13", "10.11.12.13"},
|
||||
{"1-2-3-4", "1.2.3.4"},
|
||||
{"1-2-3--A-B-C", "1:2:3::A:B:C"},
|
||||
}
|
||||
for _, test := range tests {
|
||||
result := ipFromPodName(test.ip)
|
||||
if result != test.expected {
|
||||
t.Errorf("Expected ip for podname '%v' to be '%v', but got '%v'", test.ip, test.expected, result)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
type APIConnServiceTest struct{}
|
||||
|
||||
func (APIConnServiceTest) Run() { return }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue