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

Function TestControlledSelector_PingCandidate_BuildError

selection_test.go:306–323  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

304}
305
306func TestControlledSelector_PingCandidate_BuildError(t *testing.T) {
307 a := bareAgentForPing()
308 a.remoteUfrag = bigStr()
309 a.localUfrag = bigStr()
310 a.remotePwd = selectionTestPassword
311 a.tieBreaker = 1
312
313 testLogger := &testICELogger{}
314 sel := &controlledSelector{agent: a, log: testLogger}
315 sel.Start()
316
317 local := newPingNoIOCand()
318 remote := newPingNoIOCand()
319
320 sel.PingCandidate(local, remote)
321
322 require.NotEmpty(t, testLogger.lastErrorMessage, "expected error to be logged from stun.Build")
323}
324
325type warnTestLogger struct {
326 warned bool

Callers

nothing calls this directly

Calls 5

StartMethod · 0.95
PingCandidateMethod · 0.95
bareAgentForPingFunction · 0.85
bigStrFunction · 0.85
newPingNoIOCandFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…