🌱 Switch test import to remove gotest.tools dependency. (#3501)

Signed-off-by: Spencer Schrock <sschrock@google.com>
This commit is contained in:
Spencer Schrock 2023-09-25 07:26:39 -07:00 committed by GitHub
parent 7626a05313
commit fd12f6a4e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

@ -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) {
@ -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)
}
})

6
go.mod
View File

@ -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
@ -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