summaryrefslogtreecommitdiff
path: root/pathrouter/pathrouter_test.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-08-18 13:40:30 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-08-18 13:40:30 +0200
commit5cc0f9db288ffaf44d104974707338d52530cece (patch)
treef0ad530dd072c55c6f46dfea23af993fb31333d4 /pathrouter/pathrouter_test.go
parentab5012e0083ff6623ffab78f52f9ea1120d80ffb (diff)
parenta3ccdd9f491c20771cfda343ebebd4b5d0ea6602 (diff)
downloadgo-gg-5cc0f9db288ffaf44d104974707338d52530cece.tar.gz
Merge branch 'microprom'
Diffstat (limited to 'pathrouter/pathrouter_test.go')
-rw-r--r--pathrouter/pathrouter_test.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/pathrouter/pathrouter_test.go b/pathrouter/pathrouter_test.go
index 3e91ce9..54108ac 100644
--- a/pathrouter/pathrouter_test.go
+++ b/pathrouter/pathrouter_test.go
@@ -14,7 +14,6 @@ import (
"go.xyrillian.de/gg/assert"
pr "go.xyrillian.de/gg/pathrouter"
- "go.xyrillian.de/gg/testcapture"
)
func TestRouting(t *testing.T) {
@@ -157,11 +156,8 @@ func TestRouting(t *testing.T) {
func TestPanics(t *testing.T) {
check := func(expected string, action func()) {
t.Helper()
- result := testcapture.Capture(t.Context(), t.Name(), func(t assert.TestingTB) { action() })
- assert.Equal(t, result, testcapture.Result{
- Outcome: testcapture.OutcomePanicked,
- Panic: expected,
- })
+ actual := assert.PanicsWith[string](t, action)
+ assert.Equal(t, actual, expected)
}
check(`matcher within CatchAllVariable() may not accept unlimited path lengths`, func() {