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

Function TestNetworkTypeIsUDP

networktype_test.go:73–78  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func TestNetworkTypeIsUDP(t *testing.T) {
74 require.True(t, NetworkTypeUDP4.IsUDP())
75 require.True(t, NetworkTypeUDP6.IsUDP())
76 require.False(t, NetworkTypeUDP4.IsTCP())
77 require.False(t, NetworkTypeUDP6.IsTCP())
78}
79
80func TestNetworkTypeIsTCP(t *testing.T) {
81 require.True(t, NetworkTypeTCP4.IsTCP())

Callers

nothing calls this directly

Calls 2

IsUDPMethod · 0.80
IsTCPMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…