MCPcopy Index your code
hub / github.com/maruel/panicparse / compareErr

Function compareErr

stack/stack_test.go:399–410  ·  view source on GitHub ↗
(t *testing.T, want, got error)

Source from the content-addressed store, hash-verified

397}
398
399func compareErr(t *testing.T, want, got error) {
400 if want == nil && got == nil {
401 return
402 }
403 if want == nil || got == nil {
404 t.Helper()
405 t.Errorf("want: %v, got: %v", want, got)
406 } else if want.Error() != got.Error() {
407 t.Helper()
408 t.Errorf("want: %q, got: %q", want.Error(), got.Error())
409 }
410}
411
412func compareString(t *testing.T, want, got string) {
413 if want != got {

Callers 5

TestGomoduleComplexFunction · 0.85
TestGoRunFunction · 0.85
TestAugmentErrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…