Change Lookup method names

The Local was redundant (and inaccurate in the case of the mDNS client
implementation), and otherwise they are too nondescript.
This commit is contained in:
Michael Bridgen committed 2015-01-12 17:42:23 +00:00
1 parent 5f642d390c
commit ff45bcf945
7 files changed
+22 -22

No files matched your search

+3 -3
View File
@@ -169,16 +169,16 @@ func TestAsLookup(t *testing.T) {
defer mdnsClient.Shutdown()
defer server.Shutdown()
ip, err := mdnsClient.LookupLocal(successTestName)
ip, err := mdnsClient.LookupName(successTestName)
wt.AssertNoErr(t, err)
if !testAddr.Equal(ip) {
t.Fatalf("Returned address incorrect %s", ip)
}
ip, err = mdnsClient.LookupLocal("foo.example.com.")
ip, err = mdnsClient.LookupName("foo.example.com.")
wt.AssertErrorType(t, err, (*LookupError)(nil), "unknown hostname")
name, err := mdnsClient.ReverseLookupLocal(testInAddr)
name, err := mdnsClient.LookupInaddr(testInAddr)
wt.AssertNoErr(t, err)
if !(successTestName == name) {
t.Fatalf("Expected name %s, got %s", successTestName, name)