Skip to content

Commit

Permalink
rename golden to testdiff
Browse files Browse the repository at this point in the history
  • Loading branch information
denik committed Dec 19, 2024
1 parent 2d2f6e6 commit 856c081
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/testcli/golden.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"testing"

"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/golden"
"github.com/databricks/cli/libs/iamutil"
"github.com/databricks/cli/libs/testdiff"
"github.com/databricks/databricks-sdk-go"
"github.com/databricks/databricks-sdk-go/service/iam"
"github.com/elliotchance/orderedmap/v3"
Expand Down Expand Up @@ -57,7 +57,7 @@ func RequireOutput(t testutil.TestingT, ctx context.Context, args []string, expe

if out != expected {
actual := fmt.Sprintf("Output from %v", args)
golden.AssertEqualTexts(t, expectedFilename, actual, expected, out)
testdiff.AssertEqualTexts(t, expectedFilename, actual, expected, out)

if OverwriteMode {
WriteFile(t, expectedPath, out)
Expand All @@ -75,7 +75,7 @@ func RequireOutputJQ(t testutil.TestingT, ctx context.Context, args []string, ex

if out != expected {
actual := fmt.Sprintf("Output from %v", args)
golden.AssertEqualJSONs(t.(*testing.T), expectedFilename, actual, expected, out, ignorePaths)
testdiff.AssertEqualJSONs(t.(*testing.T), expectedFilename, actual, expected, out, ignorePaths)

if OverwriteMode {
WriteFile(t, expectedPath, out)
Expand Down
2 changes: 1 addition & 1 deletion libs/golden/golden.go → libs/testdiff/testdiff.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package golden
package testdiff

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package golden
package testdiff

import (
"testing"
Expand Down

0 comments on commit 856c081

Please sign in to comment.