mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 17:07:53 +03:00
🌱 Switch test import to remove gotest.tools dependency. (#3501)
Signed-off-by: Spencer Schrock <sschrock@google.com>
This commit is contained in:
parent
7626a05313
commit
fd12f6a4e2
@ -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
6
go.mod
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user