chore(routing): unexport IPIsPrivate as ipIsPrivate

This commit is contained in:
Quentin McGaw
2023-06-08 09:13:55 +00:00
parent 40cdb4f662
commit cade2b99bf
3 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/require"
)
func Test_IPIsPrivate(t *testing.T) {
func Test_ipIsPrivate(t *testing.T) {
t.Parallel()
testCases := map[string]struct {
@@ -90,7 +90,7 @@ func Test_IPIsPrivate(t *testing.T) {
ip, err := netip.ParseAddr(testCase.ipString)
require.NoError(t, err)
isPrivate := IPIsPrivate(ip)
isPrivate := ipIsPrivate(ip)
assert.Equal(t, testCase.isPrivate, isPrivate)
})