forked from TrueCloudLab/frostfs-node
[#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:
parent
35f81729e4
commit
47fe8911a3
6 changed files with 10 additions and 10 deletions
|
@ -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() })
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue