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

Function requireFirstExternalIP

agent_options_test.go:844–858  ·  view source on GitHub ↗
(
	t *testing.T,
	mapper *addressRewriteMapper,
	candidateType CandidateType,
	localIP string,
)

Source from the content-addressed store, hash-verified

842}
843
844func requireFirstExternalIP(
845 t *testing.T,
846 mapper *addressRewriteMapper,
847 candidateType CandidateType,
848 localIP string,
849) net.IP {
850 t.Helper()
851
852 ips, matched, _, err := mapper.findExternalIPs(candidateType, localIP, "")
853 require.NoError(t, err)
854 require.True(t, matched)
855 require.NotEmpty(t, ips)
856
857 return ips[0]
858}
859
860func requireFirstMappingIP(t *testing.T, mapping *ipMapping, localIP net.IP) net.IP {
861 t.Helper()

Calls 1

findExternalIPsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…