MCPcopy
hub / github.com/google/go-cmp / report

Method report

cmp/compare.go:582–595  ·  view source on GitHub ↗
(eq bool, rf resultFlags)

Source from the content-addressed store, hash-verified

580}
581
582func (s *state) report(eq bool, rf resultFlags) {
583 if rf&reportByIgnore == 0 {
584 if eq {
585 s.result.NumSame++
586 rf |= reportEqual
587 } else {
588 s.result.NumDiff++
589 rf |= reportUnequal
590 }
591 }
592 for _, r := range s.reporters {
593 r.Report(Result{flags: rf})
594 }
595}
596
597// recChecker tracks the state needed to periodically perform checks that
598// user provided transformers are not stuck in an infinitely recursive cycle.

Callers 9

compareAnyMethod · 0.95
tryMethodMethod · 0.95
compareSliceMethod · 0.95
compareMapMethod · 0.95
comparePtrMethod · 0.95
compareInterfaceMethod · 0.95
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 1

ReportMethod · 0.65

Tested by

no test coverage detected