Skip to content

Commit 627cce6

Browse files
committed
rename AssertEqualJSONs to AssertEqualJQ
1 parent 65ce6b6 commit 627cce6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/testcli/golden.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func RequireOutputJQ(t testutil.TestingT, ctx context.Context, args []string, ex
7575

7676
if out != expected {
7777
actual := fmt.Sprintf("Output from %v", args)
78-
testdiff.AssertEqualJSONs(t.(*testing.T), expectedFilename, actual, expected, out, ignorePaths)
78+
testdiff.AssertEqualJQ(t.(*testing.T), expectedFilename, actual, expected, out, ignorePaths)
7979

8080
if OverwriteMode {
8181
WriteFile(t, expectedPath, out)

libs/testdiff/testdiff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func AssertEqualTexts(t testutil.TestingT, filename1, filename2, expected, out s
2929
}
3030
}
3131

32-
func AssertEqualJSONs(t *testing.T, expectedName, outName, expected, out string, ignorePaths []string) {
32+
func AssertEqualJQ(t *testing.T, expectedName, outName, expected, out string, ignorePaths []string) {
3333
patch, err := jsondiff.CompareJSON([]byte(expected), []byte(out))
3434
if err != nil {
3535
t.Logf("CompareJSON error for %s vs %s: %s (fallback to textual comparison)", outName, expectedName, err)

0 commit comments

Comments
 (0)