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

Function TestDefaultCandidateTypes

agent_test.go:2849–2859  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2847}
2848
2849func TestDefaultCandidateTypes(t *testing.T) {
2850 expected := []CandidateType{CandidateTypeHost, CandidateTypeServerReflexive, CandidateTypeRelay}
2851
2852 first := defaultCandidateTypes()
2853 require.Equal(t, expected, first)
2854
2855 first[0] = CandidateTypeRelay
2856
2857 second := defaultCandidateTypes()
2858 require.Equal(t, expected, second)
2859}
2860
2861func TestDefaultRelayAcceptanceMinWaitFor(t *testing.T) {
2862 t.Run("relay only defaults to zero wait", func(t *testing.T) {

Callers

nothing calls this directly

Calls 2

defaultCandidateTypesFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…