common/helpers: rename NetIPTo6 to AddrTo6

This commit is contained in:
Vincent Bernat
2025-11-04 07:43:19 +01:00
parent 23518c3e2e
commit ffe696e0e1
11 changed files with 24 additions and 24 deletions

View File

@@ -15,7 +15,7 @@ import (
func expectCacheGet(t *testing.T, c *cache.Cache[netip.Addr, string], key string, expectedResult string, expectedOk bool) {
t.Helper()
ip := netip.MustParseAddr(key)
ip = helpers.NetIPTo6(ip)
ip = helpers.AddrTo6(ip)
result, ok := c.Get(time.Time{}, ip)
got := struct {
Result string