chore: git cache cleanup

This commit is contained in:
GitHub Actions
2026-03-04 18:34:49 +00:00
parent c32cce2a88
commit 27c252600a
2001 changed files with 683185 additions and 0 deletions
@@ -0,0 +1,24 @@
package handlers
import (
"net/url"
"strconv"
"testing"
)
func expectedPortFromURL(t *testing.T, raw string) int {
t.Helper()
u, err := url.Parse(raw)
if err != nil {
t.Fatalf("failed to parse url %q: %v", raw, err)
}
p := u.Port()
if p == "" {
t.Fatalf("expected explicit port in url %q", raw)
}
port, err := strconv.Atoi(p)
if err != nil {
t.Fatalf("failed to parse port %q from url %q: %v", p, raw, err)
}
return port
}