MCPcopy Create free account
hub / github.com/pion/ice / requireFirstMappingIP

Function requireFirstMappingIP

agent_options_test.go:860–867  ·  view source on GitHub ↗
(t *testing.T, mapping *ipMapping, localIP net.IP)

Source from the content-addressed store, hash-verified

858}
859
860func requireFirstMappingIP(t *testing.T, mapping *ipMapping, localIP net.IP) net.IP {
861 t.Helper()
862
863 ips := mapping.findExternalIPs(localIP)
864 require.NotEmpty(t, ips)
865
866 return ips[0]
867}
868
869func TestWith1To1RulesOption(t *testing.T) {
870 stub := newStubNet(t)

Callers 1

Calls 1

findExternalIPsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…