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

Function zapSignatures

stack/stack_test.go:453–467  ·  view source on GitHub ↗
(t *testing.T, want, got *Signature)

Source from the content-addressed store, hash-verified

451}
452
453func zapSignatures(t *testing.T, want, got *Signature) {
454 // Signature.Stack.([]Call)
455 t.Helper()
456 if len(want.Stack.Calls) != len(got.Stack.Calls) {
457 t.Error("different call length")
458 return
459 }
460 if len(want.CreatedBy.Calls) != 0 && len(got.CreatedBy.Calls) != 0 {
461 if want.CreatedBy.Calls[0].Line != 0 && got.CreatedBy.Calls[0].Line != 0 {
462 want.CreatedBy.Calls[0].Line = 42
463 got.CreatedBy.Calls[0].Line = 42
464 }
465 }
466 zapStacks(t, &want.Stack, &got.Stack)
467}
468
469func zapStacks(t *testing.T, want, got *Stack) {
470 if len(want.Calls) != len(got.Calls) {

Callers 2

zapGoroutinesFunction · 0.85
similarSignaturesFunction · 0.85

Calls 1

zapStacksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…