diff options
author | ale <ale@incal.net> | 2021-06-19 17:48:06 +0000 |
---|---|---|
committer | ale <ale@incal.net> | 2021-06-19 17:48:06 +0000 |
commit | 877afafd950b84242204499b3ed8c1b2c8c75f31 (patch) | |
tree | 864508749425be307061ba9aa772ac47df74c0da /vendor/github.com/google/go-cmp/cmp/report.go | |
parent | 464a1701053f90a07946335768dc87ef68db88a3 (diff) | |
parent | a4ceb326c4eb592ab989f1202584ea2cfded574f (diff) | |
download | crawl-877afafd950b84242204499b3ed8c1b2c8c75f31.tar.gz crawl-877afafd950b84242204499b3ed8c1b2c8c75f31.zip |
Merge branch 'renovate/github.com-google-go-cmp-0.x' into 'master'
Update module github.com/google/go-cmp to v0.5.6
See merge request ale/crawl!5
Diffstat (limited to 'vendor/github.com/google/go-cmp/cmp/report.go')
-rw-r--r-- | vendor/github.com/google/go-cmp/cmp/report.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vendor/github.com/google/go-cmp/cmp/report.go b/vendor/github.com/google/go-cmp/cmp/report.go index 6ddf299..f43cd12 100644 --- a/vendor/github.com/google/go-cmp/cmp/report.go +++ b/vendor/github.com/google/go-cmp/cmp/report.go @@ -1,6 +1,6 @@ // Copyright 2017, The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE.md file. +// license that can be found in the LICENSE file. package cmp @@ -41,7 +41,10 @@ func (r *defaultReporter) String() string { if r.root.NumDiff == 0 { return "" } - return formatOptions{}.FormatDiff(r.root).String() + ptrs := new(pointerReferences) + text := formatOptions{}.FormatDiff(r.root, ptrs) + resolveReferences(text) + return text.String() } func assert(ok bool) { |