diff options
| author | Eltrac <hi@guhub.cn> | 2025-12-03 14:47:01 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-12-03 14:47:01 +0800 |
| commit | c1f6161d4360578cba00f2a6933b7cf9247622a3 (patch) | |
| tree | b907b66e0beb5da85f3f8b83cb871ef40188bd5d /group_test.go | |
| parent | 8871615c98bce3c2c3aa871ce4e80126558cb91b (diff) | |
style: run gofmt and remove pointless comments
Diffstat (limited to 'group_test.go')
| -rw-r--r-- | group_test.go | 42 |
1 files changed, 12 insertions, 30 deletions
diff --git a/group_test.go b/group_test.go index e682f09..e1ceca4 100644 --- a/group_test.go +++ b/group_test.go @@ -6,12 +6,6 @@ import ( "testing" ) -/* - ====================================================== - Test Group() - ====================================================== -*/ - func TestGroupCallback(t *testing.T) { e := New() @@ -32,12 +26,6 @@ func TestGroupCallback(t *testing.T) { } } -/* - ====================================================== - Test route registration - ====================================================== -*/ - func TestGroupRouteRegistration(t *testing.T) { e := New() @@ -81,24 +69,6 @@ func TestGroupRouteRegistration(t *testing.T) { } } -// helper: convert []string{"api","ping"} → "api/ping" -func joinParts(parts []string) string { - out := "" - for i, p := range parts { - if i > 0 { - out += "/" - } - out += p - } - return out -} - -/* - ====================================================== - End-to-End ServeHTTP test - ====================================================== -*/ - func TestGroupServeHTTP(t *testing.T) { e := New() @@ -121,3 +91,15 @@ func TestGroupServeHTTP(t *testing.T) { t.Fatalf("expected body 'ok', got '%s'", body) } } + +// helper: convert []string{"api","ping"} → "api/ping" +func joinParts(parts []string) string { + out := "" + for i, p := range parts { + if i > 0 { + out += "/" + } + out += p + } + return out +} |
