[#607] network: Rename Address.HostAddrString method to HostAddr

Return tyype is clear from the method's signature and docs, there is no
point in reflecting it in the name.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-06-16 14:12:03 +03:00 committed by Leonard Lyubich
parent 35f81729e4
commit 47fe8911a3
6 changed files with 10 additions and 10 deletions

View file

@ -62,7 +62,7 @@ func TestAddress_HostAddrString(t *testing.T) {
for _, testcase := range testcases {
addr := Address{testcase.ma}
got := addr.HostAddrString()
got := addr.HostAddr()
require.Equal(t, testcase.exp, got)
}
@ -75,7 +75,7 @@ func TestAddress_HostAddrString(t *testing.T) {
for _, testcase := range testcases {
addr := Address{testcase}
require.Panics(t, func() { addr.HostAddrString() })
require.Panics(t, func() { addr.HostAddr() })
}
})
}