diff options
author | renovate <renovate-bot@autistici.org> | 2021-06-19 17:25:55 +0000 |
---|---|---|
committer | renovate <renovate-bot@autistici.org> | 2021-06-19 17:25:55 +0000 |
commit | a4ceb326c4eb592ab989f1202584ea2cfded574f (patch) | |
tree | 48e8e6fb60fe11d3ea96eb2a789b0698c69b14c8 /vendor/github.com/google/go-cmp/cmp/report.go | |
parent | d82bb811816d6155e3891089a020438859c75c5a (diff) | |
download | crawl-a4ceb326c4eb592ab989f1202584ea2cfded574f.tar.gz crawl-a4ceb326c4eb592ab989f1202584ea2cfded574f.zip |
Update module github.com/google/go-cmp to v0.5.6
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) { |