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:
Yicheng Qin
2015-08-21 11:58:37 -07:00
parent bad1b20620
commit c530acf6a4
2 changed files with 9 additions and 9 deletions

View File

@ -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)
}