chore: clean .gitignore cache

This commit is contained in:
GitHub Actions
2026-01-26 19:21:33 +00:00
parent 1b1b3a70b1
commit e5f0fec5db
1483 changed files with 0 additions and 472793 deletions

View File

@@ -1,24 +0,0 @@
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
}