(t *testing.T)
| 53 | } |
| 54 | |
| 55 | func 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 | |
| 68 | func TestEffectiveURLProtoType(t *testing.T) { |
| 69 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…