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

Function TestWithNetOption

agent_options_test.go:225–233  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

223}
224
225func TestWithNetOption(t *testing.T) {
226 stub := newStubNet(t)
227
228 agent, err := NewAgentWithOptions(WithNet(stub))
229 require.NoError(t, err)
230 defer func() { require.NoError(t, agent.Close()) }()
231
232 assert.Equal(t, stub, agent.net)
233}
234
235func TestWithMulticastDNSOptions(t *testing.T) {
236 agent, err := NewAgentWithOptions(

Callers

nothing calls this directly

Calls 5

newStubNetFunction · 0.85
NewAgentWithOptionsFunction · 0.85
WithNetFunction · 0.85
CloseMethod · 0.65
EqualMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…