(t *testing.T)
| 304 | } |
| 305 | |
| 306 | func 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 | |
| 325 | type warnTestLogger struct { |
| 326 | warned bool |
nothing calls this directly
no test coverage detected
searching dependent graphs…