diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-05-06 10:31:57 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2025-05-06 13:25:48 +0200 |
| commit | 6b939462fb1064abd42e8cb8316700ec844172ea (patch) | |
| tree | b572daecdf0f25e3beec9883a8b7bb2522628212 /internal/wireguard/ini/ini_test.go | |
| parent | 347b20fc91505584bc9efbeca89590a411b95e79 (diff) | |
All: Remove ProxyGuard integration
This should be done in WireGuard-go or in case of a linux a small daemon
Diffstat (limited to 'internal/wireguard/ini/ini_test.go')
| -rw-r--r-- | internal/wireguard/ini/ini_test.go | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/internal/wireguard/ini/ini_test.go b/internal/wireguard/ini/ini_test.go index faa45f2..d28ad4d 100644 --- a/internal/wireguard/ini/ini_test.go +++ b/internal/wireguard/ini/ini_test.go @@ -160,73 +160,6 @@ func TestKeyValue(t *testing.T) { } } -func TestOrderedKeysFind(t *testing.T) { - cases := []struct { - v OrderedKeys - in string - w int - }{ - { - v: []string{""}, - in: "test", - w: -1, - }, - { - v: []string{"bla"}, - in: "bla", - w: 0, - }, - { - v: []string{"ha"}, - in: "bla", - w: -1, - }, - { - v: []string{"ha", "ga"}, - in: "ga", - w: 1, - }, - } - - for _, c := range cases { - g := c.v.find(c.in) - if g != c.w { - t.Fatalf("got: %v, want: %v", g, c.w) - } - } -} - -func TestOrderedKeysRemove(t *testing.T) { - cases := []struct { - v OrderedKeys - rem string - out OrderedKeys - }{ - { - v: []string{"bla"}, - rem: "test", - out: []string{"bla"}, - }, - { - v: []string{"bla"}, - rem: "bla", - out: []string{}, - }, - { - v: []string{"ha", "ga"}, - rem: "ga", - out: []string{"ha"}, - }, - } - - for _, c := range cases { - c.v.Remove(c.rem) - if !reflect.DeepEqual(c.v, c.out) { - t.Fatalf("got: %v, want: %v", c.v, c.out) - } - } -} - func TestParse(t *testing.T) { // parse correct file |
