aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-12 19:56:59 +0900
committerOphestra <cat@gensokyo.uk>2026-05-12 19:56:59 +0900
commit8f3c22896adc06b6c5f646540924dc3a39170e45 (patch)
tree7db01ab250690c7fc899aa4a4b66e3ab4205d7d1 /internal
parenta167c1aba54a25665654036914be34c33087207c (diff)
internal/pkg: DCE benchmark unwrap only
This eliminates noise at lower depths. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/pkg/pkg_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go
index c514cbb6..4ce4ba6a 100644
--- a/internal/pkg/pkg_test.go
+++ b/internal/pkg/pkg_test.go
@@ -1622,9 +1622,10 @@ func BenchmarkEarlyDCE(b *testing.B) {
b.Fatalf("Cure: error = %v", err)
}
c.Close()
+ dce := err.(*pkg.DependencyCureError)
for b.Loop() {
- err.Error()
+ dce.Unwrap()
}
}