summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-02-27 15:48:47 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2023-02-27 15:48:47 +0100
commitac9ec0f8dfeb7227d7d00f8cd1bc2ab1a2310441 (patch)
treeffd4c45b15b69fd13820ac32d4c11613cd3272d8
parent20e3f48f23a8a76ec2f84690bf94da5919f10fe5 (diff)
Profile Test: format
-rw-r--r--internal/server/profile_test.go50
1 files changed, 25 insertions, 25 deletions
diff --git a/internal/server/profile_test.go b/internal/server/profile_test.go
index 777d51c..d6a7e9d 100644
--- a/internal/server/profile_test.go
+++ b/internal/server/profile_test.go
@@ -5,83 +5,83 @@ import "testing"
func Test_CurrentProfileIndex(t *testing.T) {
testCases := []struct {
profiles []Profile
- current string
- index int
+ current string
+ index int
}{
{
profiles: []Profile{
{
- ID: "a",
- DisplayName: "b",
+ ID: "a",
+ DisplayName: "b",
VPNProtoList: []string{"openvpn", "wireguard"},
},
},
current: "a",
- index: 0,
+ index: 0,
},
{
profiles: []Profile{
{
- ID: "a",
- DisplayName: "a",
+ ID: "a",
+ DisplayName: "a",
VPNProtoList: []string{"openvpn", "wireguard"},
},
{
- ID: "b",
- DisplayName: "b",
+ ID: "b",
+ DisplayName: "b",
VPNProtoList: []string{"openvpn", "wireguard"},
},
},
current: "b",
- index: 1,
+ index: 1,
},
{
profiles: []Profile{
{
- ID: "a",
- DisplayName: "a",
+ ID: "a",
+ DisplayName: "a",
VPNProtoList: []string{"openvpn", "wireguard"},
},
{
- ID: "b",
- DisplayName: "b",
+ ID: "b",
+ DisplayName: "b",
VPNProtoList: []string{"openvpn", "wireguard"},
},
},
current: "",
- index: 0,
+ index: 0,
},
{
profiles: []Profile{
{
- ID: "a",
- DisplayName: "a",
+ ID: "a",
+ DisplayName: "a",
VPNProtoList: []string{"openvpn", "wireguard"},
},
{
- ID: "b",
- DisplayName: "b",
+ ID: "b",
+ DisplayName: "b",
VPNProtoList: []string{"openvpn", "wireguard"},
},
},
current: "",
- index: 0,
+ index: 0,
},
{
profiles: []Profile{
{
- ID: "a",
- DisplayName: "a",
+ ID: "a",
+ DisplayName: "a",
VPNProtoList: []string{"openvpn", "wireguard"},
},
{
- ID: "b",
- DisplayName: "b",
+ ID: "b",
+ DisplayName: "b",
VPNProtoList: []string{"openvpn", "wireguard"},
},
},
current: "idonotexist",
- index: 0,
+ index: 0,
},
}