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

Function TestConfiguredNetworkTypes

gather_test.go:55–66  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

53}
54
55func TestConfiguredNetworkTypes(t *testing.T) {
56 t.Run("empty returns supported network types", func(t *testing.T) {
57 got := configuredNetworkTypes(nil)
58 require.Equal(t, supportedNetworkTypes(), got)
59 })
60
61 t.Run("non-empty returns configured values", func(t *testing.T) {
62 expected := []NetworkType{NetworkTypeUDP4, NetworkTypeTCP6}
63 got := configuredNetworkTypes(expected)
64 require.Equal(t, expected, got)
65 })
66}
67
68func TestEffectiveURLProtoType(t *testing.T) {
69 tests := []struct {

Callers

nothing calls this directly

Calls 4

configuredNetworkTypesFunction · 0.85
supportedNetworkTypesFunction · 0.85
RunMethod · 0.80
EqualMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…