feat: import Sea vHost single-server testing release

This commit is contained in:
canglan committed 2026-10-30 08:39:10 +08:00
commit 248badd33e
441 files changed
+63221

No files matched your search

@@ -0,0 +1,17 @@
package service
import "testing"
func TestPatchBranchesNeverImplicitlyCrossLanguageBranches(t *testing.T) {
for _, test := range []struct{ name, version, branch string }{
{"PHP", "8.4.27", "8.4"}, {"Python", "3.12.15", "3.12"}, {"Python", "3.13.17", "3.13"},
{"Node.js", "v24.22.1", "24"}, {"Java", "jdk-21.0.9", "21"}, {"Go", "go1.27.3", "1.27"},
} {
if got := runtimeBranch(test.name, test.version); got != test.branch {
t.Fatalf("%s %s branch=%s", test.name, test.version, got)
}
}
if !runtimeVersionNewer("3.12.15", "3.12.9") || runtimeVersionNewer("go1.27.1", "go1.27.3") {
t.Fatal("patch versions were compared lexically")
}
}