diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-12 19:56:59 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-12 19:56:59 +0900 |
| commit | 8f3c22896adc06b6c5f646540924dc3a39170e45 (patch) | |
| tree | 7db01ab250690c7fc899aa4a4b66e3ab4205d7d1 /internal/pkg/pkg_test.go | |
| parent | a167c1aba54a25665654036914be34c33087207c (diff) | |
internal/pkg: DCE benchmark unwrap only
This eliminates noise at lower depths.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg_test.go')
| -rw-r--r-- | internal/pkg/pkg_test.go | 3 |
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() } } |
