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

Method equal

stack/stack.go:250–260  ·  view source on GitHub ↗

equal returns true only if both arguments are exactly equal.

(r *Args)

Source from the content-addressed store, hash-verified

248
249// equal returns true only if both arguments are exactly equal.
250func (a *Args) equal(r *Args) bool {
251 if a.Elided != r.Elided || len(a.Values) != len(r.Values) {
252 return false
253 }
254 for i, l := range a.Values {
255 if !l.equal(&r.Values[i]) {
256 return false
257 }
258 }
259 return true
260}
261
262// similar returns true if the two Args are equal or almost but not quite
263// equal.

Callers

nothing calls this directly

Calls 1

equalMethod · 0.45

Tested by

no test coverage detected