Skip to content

Commit 0887707

Browse files
committed
Replace deep package with go-cmp
Signed-off-by: Timo Sand <[email protected]>
1 parent 2d24852 commit 0887707

9 files changed

Lines changed: 3 additions & 489 deletions

File tree

github/resource_github_emu_group_mapping_migration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strconv"
66
"testing"
77

8-
"github.com/go-test/deep"
8+
"github.com/google/go-cmp/cmp"
99
"github.com/google/go-github/v82/github"
1010
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1111

@@ -103,7 +103,7 @@ func TestGithub_MigrateEMUGroupMappingsState(t *testing.T) {
103103
if (err != nil) != d.shouldError {
104104
t.Fatalf("unexpected error state: %s", err.Error())
105105
}
106-
if diff := deep.Equal(got, expectedState); !d.shouldError && diff != nil {
106+
if diff := cmp.Diff(expectedState, got); !d.shouldError && diff != "" {
107107
t.Fatal(diff)
108108
}
109109
})

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.24.4
44

55
require (
66
github.com/go-jose/go-jose/v3 v3.0.4
7-
github.com/go-test/deep v1.0.3
7+
github.com/google/go-cmp v0.7.0
88
github.com/google/go-github/v82 v82.0.0
99
github.com/google/uuid v1.6.0
1010
github.com/hashicorp/go-cty v1.5.0
@@ -23,7 +23,6 @@ require (
2323
github.com/cloudflare/circl v1.6.1 // indirect
2424
github.com/fatih/color v1.18.0 // indirect
2525
github.com/golang/protobuf v1.5.4 // indirect
26-
github.com/google/go-cmp v0.7.0 // indirect
2726
github.com/google/go-github/v73 v73.0.0 // indirect
2827
github.com/google/go-querystring v1.2.0 // indirect
2928
github.com/gorilla/mux v1.8.1 // indirect

vendor/github.com/go-test/deep/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

vendor/github.com/go-test/deep/.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

vendor/github.com/go-test/deep/CHANGES.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

vendor/github.com/go-test/deep/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

vendor/github.com/go-test/deep/README.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)