From 8ffd8eda92fbb57a42688bcd05e2481b813f88e8 Mon Sep 17 00:00:00 2001 From: "David R. Jenni" Date: Sat, 4 Mar 2017 17:46:29 +0100 Subject: [PATCH] x/tools/cmd/guru: fix golden files for what query CL golang.org/cl/37349 broke the tests, because the golden files were not updated appropriately. Change-Id: I9a2a56d1ca74b8bc77935aff26ed6297fbacf232 Reviewed-on: https://go-review.googlesource.com/37770 Reviewed-by: Dominik Honnef Run-TryBot: Dominik Honnef --- cmd/guru/testdata/src/what-json/main.golden | 6 ++++-- cmd/guru/testdata/src/what/main.golden | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/cmd/guru/testdata/src/what-json/main.golden b/cmd/guru/testdata/src/what-json/main.golden index 5008d67a74..320c52bd45 100644 --- a/cmd/guru/testdata/src/what-json/main.golden +++ b/cmd/guru/testdata/src/what-json/main.golden @@ -41,7 +41,8 @@ "freevars", "implements", "pointsto", - "referrers" + "referrers", + "whicherrs" ], "srcdir": "testdata/src", "importpath": "what-json" @@ -81,7 +82,8 @@ "freevars", "implements", "pointsto", - "referrers" + "referrers", + "whicherrs" ], "srcdir": "testdata/src", "importpath": "what-json", diff --git a/cmd/guru/testdata/src/what/main.golden b/cmd/guru/testdata/src/what/main.golden index 74640c8071..f113e2f85f 100644 --- a/cmd/guru/testdata/src/what/main.golden +++ b/cmd/guru/testdata/src/what/main.golden @@ -1,7 +1,7 @@ -------- @what pkgdecl -------- identifier source file -modes: [definition describe freevars implements pointsto referrers] +modes: [definition describe freevars implements pointsto referrers whicherrs] srcdir: testdata/src import path: what @@ -12,7 +12,7 @@ expression statement block function declaration source file -modes: [callees callers callstack definition describe freevars implements pointsto referrers] +modes: [callees callers callstack definition describe freevars implements pointsto referrers whicherrs] srcdir: testdata/src import path: what @@ -22,7 +22,7 @@ variable declaration statement block function declaration source file -modes: [callers callstack describe freevars pointsto] +modes: [callers callstack describe freevars pointsto whicherrs] srcdir: testdata/src import path: what @@ -33,7 +33,7 @@ expression statement block function declaration source file -modes: [callers callstack definition describe freevars implements peers pointsto referrers] +modes: [callers callstack definition describe freevars implements peers pointsto referrers whicherrs] srcdir: testdata/src import path: what ch