1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-11-10 01:20:58 +01:00
juanfont.headscale/hscontrol/capver/capver_test_data.go
Kristoffer Dalby 54d24d5dcb
capver: generate
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-10-24 11:57:19 +02:00

41 lines
745 B
Go

package capver
// Generated DO NOT EDIT
import "tailscale.com/tailcfg"
var tailscaleLatestMajorMinorTests = []struct {
n int
stripV bool
expected []string
}{
{3, false, []string{"v1.86", "v1.88", "v1.90"}},
{2, true, []string{"1.88", "1.90"}},
{10, true, []string{
"1.72",
"1.74",
"1.76",
"1.78",
"1.80",
"1.82",
"1.84",
"1.86",
"1.88",
"1.90",
}},
{0, false, nil},
}
var capVerMinimumTailscaleVersionTests = []struct {
input tailcfg.CapabilityVersion
expected string
}{
{104, "v1.72.0"},
{95, "v1.66.2"},
{97, "v1.68.0"},
{102, "v1.70.0"},
{106, "v1.74.0"},
{9001, ""}, // Test case for a version higher than any in the map
{60, ""}, // Test case for a version lower than any in the map
}