MCPcopy Create free account
hub / github.com/maruel/panicparse / equal

Method equal

stack/stack.go:693–698  ·  view source on GitHub ↗

equal returns true only if both signatures are exactly equal.

(r *Signature)

Source from the content-addressed store, hash-verified

691
692// equal returns true only if both signatures are exactly equal.
693func (s *Signature) equal(r *Signature) bool {
694 if s.State != r.State || !s.CreatedBy.equal(&r.CreatedBy) || s.Locked != r.Locked || s.SleepMin != r.SleepMin || s.SleepMax != r.SleepMax {
695 return false
696 }
697 return s.Stack.equal(&r.Stack)
698}
699
700// similar returns true if the two Signature are equal or almost but not quite
701// equal.

Callers 1

AggregateMethod · 0.95

Calls 1

equalMethod · 0.45

Tested by

no test coverage detected