Skip to content

Commit

Permalink
🌱 Switch test import to remove gotest.tools dependency. (#3501)
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <sschrock@google.com>
  • Loading branch information
spencerschrock authored Sep 25, 2023
1 parent 7626a05 commit fd12f6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions checks/fileparser/github_workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"strings"
"testing"

"github.com/google/go-cmp/cmp"
"github.com/rhysd/actionlint"
"gotest.tools/assert/cmp"
)

func TestGitHubWorkflowShell(t *testing.T) {
Expand Down Expand Up @@ -142,7 +142,7 @@ func TestGitHubWorkflowShell(t *testing.T) {
actualShells = append(actualShells, shell)
}
}
if !cmp.DeepEqual(tt.expectedShells, actualShells)().Success() {
if !cmp.Equal(tt.expectedShells, actualShells) {
t.Errorf("%v: Got (%v) expected (%v)", tt.name, actualShells, tt.expectedShells)
}
})
Expand Down
6 changes: 1 addition & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ module github.com/ossf/scorecard/v4

go 1.19

require (
github.com/rhysd/actionlint v1.6.15
gotest.tools v2.2.0+incompatible
)

require (
cloud.google.com/go/bigquery v1.55.0
cloud.google.com/go/monitoring v1.15.1 // indirect
Expand All @@ -26,6 +21,7 @@ require (
github.com/moby/buildkit v0.12.2
github.com/olekukonko/tablewriter v0.0.5
github.com/onsi/gomega v1.27.10
github.com/rhysd/actionlint v1.6.15
github.com/shurcooL/githubv4 v0.0.0-20201206200315-234843c633fa
github.com/shurcooL/graphql v0.0.0-20200928012149-18c5c3165e3a
github.com/sirupsen/logrus v1.9.3
Expand Down

0 comments on commit fd12f6a

Please sign in to comment.