pkg/netutil: not export resolve and urlsEqual functions
They are only used in this package, so there is no need to public them.
This commit is contained in:
@ -124,7 +124,7 @@ func TestResolveTCPAddrs(t *testing.T) {
|
||||
}
|
||||
return &net.TCPAddr{IP: net.ParseIP(tt.hostMap[host]), Port: i, Zone: ""}, nil
|
||||
}
|
||||
err := ResolveTCPAddrs(tt.urls...)
|
||||
err := resolveTCPAddrs(tt.urls...)
|
||||
if tt.hasError {
|
||||
if err == nil {
|
||||
t.Errorf("expected error")
|
||||
@ -244,7 +244,7 @@ func TestURLsEqual(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
result := URLsEqual(test.a, test.b)
|
||||
result := urlsEqual(test.a, test.b)
|
||||
if result != test.expect {
|
||||
t.Errorf("a:%v b:%v, expected %v but %v", test.a, test.b, test.expect, result)
|
||||
}
|
||||
|
Reference in New Issue
Block a user