Skip to content

Commit 3987752

Browse files
committed
chore: use the vendored gospew library
1 parent 3dce331 commit 3987752

File tree

9 files changed

+9
-11
lines changed

9 files changed

+9
-11
lines changed

assert/assertions.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ import (
1717
"unicode"
1818
"unicode/utf8"
1919

20-
"github.com/davecgh/go-spew/spew"
21-
"github.com/stretchr/testify/internal/difflib"
22-
2320
// Wrapper around gopkg.in/yaml.v3
2421
"github.com/stretchr/testify/assert/yaml"
22+
"github.com/stretchr/testify/internal/difflib"
23+
"github.com/stretchr/testify/internal/spew"
2524
)
2625

2726
//go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_format.go.tmpl"

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ module github.com/stretchr/testify
55
go 1.17
66

77
require (
8-
github.com/davecgh/go-spew v1.1.1
98
github.com/stretchr/objx v0.5.2 // To avoid a cycle the version of testify used by objx should be excluded below
109
gopkg.in/yaml.v3 v3.0.1
1110
)

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
21
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
32
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
43
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=

internal/spew/common_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"reflect"
2222
"testing"
2323

24-
"github.com/davecgh/go-spew/spew"
24+
"github.com/stretchr/testify/internal/spew"
2525
)
2626

2727
// custom type to test Stinger interface on non-pointer receiver.

internal/spew/dump_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import (
6767
"testing"
6868
"unsafe"
6969

70-
"github.com/davecgh/go-spew/spew"
70+
"github.com/stretchr/testify/internal/spew"
7171
)
7272

7373
// dumpTest is used to describe a test to be performed against the Dump method.

internal/spew/dumpcgo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ package spew_test
2828
import (
2929
"fmt"
3030

31-
"github.com/davecgh/go-spew/spew/testdata"
31+
"github.com/stretchr/testify/internal/spew/testdata"
3232
)
3333

3434
func addCgoDumpTests() {

internal/spew/format_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ import (
7272
"testing"
7373
"unsafe"
7474

75-
"github.com/davecgh/go-spew/spew"
75+
"github.com/stretchr/testify/internal/spew"
7676
)
7777

7878
// formatterTest is used to describe a test to be performed against NewFormatter.

internal/spew/spew_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"os"
2424
"testing"
2525

26-
"github.com/davecgh/go-spew/spew"
26+
"github.com/stretchr/testify/internal/spew"
2727
)
2828

2929
// spewFunc is used to identify which public function of the spew package or

mock/mock.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ import (
1111
"sync"
1212
"time"
1313

14-
"github.com/davecgh/go-spew/spew"
1514
"github.com/stretchr/objx"
15+
1616
"github.com/stretchr/testify/assert"
1717
"github.com/stretchr/testify/internal/difflib"
18+
"github.com/stretchr/testify/internal/spew"
1819
)
1920

2021
// regex for GCCGO functions

0 commit comments

Comments
 (0)