type github.com/google/go-cmp/cmp/internal/diff.Result
13 uses
github.com/google/go-cmp/cmp/internal/diff (current package)
diff.go#L92: type EqualFunc func(ix int, iy int) Result
diff.go#L97: type Result struct{ NumSame, NumDiff int }
diff.go#L100: func BoolResult(b bool) Result {
diff.go#L102: return Result{NumSame: 1} // Equal, Similar
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#L117: func (r Result) Similar() bool {
github.com/google/go-cmp/cmp
compare.go#L123: s.result = diff.Result{} // Reset results
compare.go#L167: result diff.Result // The current result of comparison
compare.go#L220: func (s *state) statelessCompare(step PathStep) diff.Result {
compare.go#L227: s.result = diff.Result{} // Reset result
compare.go#L492: edits := diff.Difference(len(indexesX), len(indexesY), func(ix, iy int) diff.Result {
report_slices.go#L324: es := diff.Difference(vx.Len(), vy.Len(), func(ix int, iy int) diff.Result {
 |
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. |