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

Method equal

stack/stack.go:519–529  ·  view source on GitHub ↗

equal returns true on if both call stacks are exactly equal.

(r *Stack)

Source from the content-addressed store, hash-verified

517
518// equal returns true on if both call stacks are exactly equal.
519func (s *Stack) equal(r *Stack) bool {
520 if len(s.Calls) != len(r.Calls) || s.Elided != r.Elided {
521 return false
522 }
523 for i := range s.Calls {
524 if !s.Calls[i].equal(&r.Calls[i]) {
525 return false
526 }
527 }
528 return true
529}
530
531// similar returns true if the two Stack are equal or almost but not quite
532// equal.

Callers

nothing calls this directly

Calls 1

equalMethod · 0.45

Tested by

no test coverage detected