github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/controller/internal/enforcer/applicationproxy/protomux/protomux_test.go (about) 1 // +build !windows 2 3 package protomux 4 5 import ( 6 "testing" 7 8 "github.com/magiconair/properties/assert" 9 ) 10 11 func TestNetworkAddress(t *testing.T) { 12 ip := networkOfAddress("172.17.0.2:80") 13 assert.Equal(t, ip, "172.17.0.2", "ip should be 172.17.0.2") 14 15 ip = networkOfAddress("[ff::1]:80") 16 assert.Equal(t, ip, "ff::1", "ip should be ff::1") 17 }