github.com/google/go-cmp/cmp/internal/diff.Result.NumDiff (field)
7 uses
github.com/google/go-cmp/cmp/internal/diff (current package)
diff.go#L97: type Result struct{ NumSame, NumDiff int }
diff.go#L104: return Result{NumDiff: 2} // Not Equal, not Similar
diff.go#L110: func (r Result) Equal() bool { return r.NumDiff == 0 }
diff.go#L119: return r.NumSame+1 >= r.NumDiff
github.com/google/go-cmp/cmp
compare.go#L477: ignored := s.statelessCompare(withIndexes(ix, -1)).NumDiff == 0
compare.go#L484: ignored := s.statelessCompare(withIndexes(-1, iy)).NumDiff == 0
compare.go#L601: s.result.NumDiff++
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |