Skip to content

Commit 0d4462b

Browse files
authored
Merge pull request #4 from wallester/chore/implement-a-switch-to-randomizer
2 parents 1ebda3a + eba5617 commit 0d4462b

File tree

18 files changed

+48
-42
lines changed

18 files changed

+48
-42
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ package yours
3737

3838
import (
3939
"testing"
40-
"github.com/wallester/testify/assert"
40+
"github.com/stretchr/testify/assert"
4141
)
4242

4343
func TestSomething(t *testing.T) {
@@ -73,7 +73,7 @@ package yours
7373

7474
import (
7575
"testing"
76-
"github.com/wallester/testify/assert"
76+
"github.com/stretchr/testify/assert"
7777
)
7878

7979
func TestSomething(t *testing.T) {
@@ -119,7 +119,7 @@ package yours
119119

120120
import (
121121
"testing"
122-
"github.com/wallester/testify/mock"
122+
"github.com/stretchr/testify/mock"
123123
)
124124

125125
/*
@@ -232,8 +232,8 @@ An example suite is shown below:
232232
// Basic imports
233233
import (
234234
"testing"
235-
"github.com/wallester/testify/assert"
236-
"github.com/wallester/testify/suite"
235+
"github.com/stretchr/testify/assert"
236+
"github.com/stretchr/testify/suite"
237237
)
238238

239239
// Define the suite, and absorb the built-in basic suite
@@ -273,7 +273,7 @@ For more information on writing suites, check out the [API documentation for the
273273
// Basic imports
274274
import (
275275
"testing"
276-
"github.com/wallester/testify/suite"
276+
"github.com/stretchr/testify/suite"
277277
)
278278

279279
// Define the suite, and absorb the built-in basic suite
@@ -309,15 +309,15 @@ Installation
309309

310310
To install Testify, use `go get`:
311311

312-
go get github.com/wallester/testify
312+
go get github.com/stretchr/testify
313313

314314
This will then make the following packages available to you:
315315

316-
github.com/wallester/testify/assert
317-
github.com/wallester/testify/require
318-
github.com/wallester/testify/mock
319-
github.com/wallester/testify/suite
320-
github.com/wallester/testify/http (deprecated)
316+
github.com/stretchr/testify/assert
317+
github.com/stretchr/testify/require
318+
github.com/stretchr/testify/mock
319+
github.com/stretchr/testify/suite
320+
github.com/stretchr/testify/http (deprecated)
321321

322322
Import the `testify/assert` package into your code using this template:
323323

@@ -326,7 +326,7 @@ package yours
326326

327327
import (
328328
"testing"
329-
"github.com/wallester/testify/assert"
329+
"github.com/stretchr/testify/assert"
330330
)
331331

332332
func TestSomething(t *testing.T) {

_codegen/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
)
2929

3030
var (
31-
pkg = flag.String("assert-path", "github.com/wallester/testify/assert", "Path to the assert package")
31+
pkg = flag.String("assert-path", "github.com/stretchr/testify/assert", "Path to the assert package")
3232
includeF = flag.Bool("include-format-funcs", false, "include format functions such as Errorf and Equalf")
3333
outputPkg = flag.String("output-package", "", "package for the resulting code")
3434
tmplFile = flag.String("template", "", "What file to load the function template from")

assert/assertion_compare_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func TestGreater(t *testing.T) {
166166
out := &outputT{buf: bytes.NewBuffer(nil)}
167167
False(t, Greater(out, currCase.less, currCase.greater))
168168
Contains(t, out.buf.String(), currCase.msg)
169-
Contains(t, out.helpers, "github.com/wallester/testify/assert.Greater")
169+
Contains(t, out.helpers, "github.com/stretchr/testify/assert.Greater")
170170
}
171171
}
172172

@@ -210,7 +210,7 @@ func TestGreaterOrEqual(t *testing.T) {
210210
out := &outputT{buf: bytes.NewBuffer(nil)}
211211
False(t, GreaterOrEqual(out, currCase.less, currCase.greater))
212212
Contains(t, out.buf.String(), currCase.msg)
213-
Contains(t, out.helpers, "github.com/wallester/testify/assert.GreaterOrEqual")
213+
Contains(t, out.helpers, "github.com/stretchr/testify/assert.GreaterOrEqual")
214214
}
215215
}
216216

@@ -254,7 +254,7 @@ func TestLess(t *testing.T) {
254254
out := &outputT{buf: bytes.NewBuffer(nil)}
255255
False(t, Less(out, currCase.greater, currCase.less))
256256
Contains(t, out.buf.String(), currCase.msg)
257-
Contains(t, out.helpers, "github.com/wallester/testify/assert.Less")
257+
Contains(t, out.helpers, "github.com/stretchr/testify/assert.Less")
258258
}
259259
}
260260

@@ -298,7 +298,7 @@ func TestLessOrEqual(t *testing.T) {
298298
out := &outputT{buf: bytes.NewBuffer(nil)}
299299
False(t, LessOrEqual(out, currCase.greater, currCase.less))
300300
Contains(t, out.buf.String(), currCase.msg)
301-
Contains(t, out.helpers, "github.com/wallester/testify/assert.LessOrEqual")
301+
Contains(t, out.helpers, "github.com/stretchr/testify/assert.LessOrEqual")
302302
}
303303
}
304304

@@ -337,7 +337,7 @@ func TestPositive(t *testing.T) {
337337
out := &outputT{buf: bytes.NewBuffer(nil)}
338338
False(t, Positive(out, currCase.e))
339339
Contains(t, out.buf.String(), currCase.msg)
340-
Contains(t, out.helpers, "github.com/wallester/testify/assert.Positive")
340+
Contains(t, out.helpers, "github.com/stretchr/testify/assert.Positive")
341341
}
342342
}
343343

@@ -376,7 +376,7 @@ func TestNegative(t *testing.T) {
376376
out := &outputT{buf: bytes.NewBuffer(nil)}
377377
False(t, Negative(out, currCase.e))
378378
Contains(t, out.buf.String(), currCase.msg)
379-
Contains(t, out.helpers, "github.com/wallester/testify/assert.Negative")
379+
Contains(t, out.helpers, "github.com/stretchr/testify/assert.Negative")
380380
}
381381
}
382382

assert/assertions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/pmezard/go-difflib/difflib"
2222

2323
// Wrapper around gopkg.in/yaml.v3
24-
"github.com/wallester/testify/assert/yaml"
24+
"github.com/stretchr/testify/assert/yaml"
2525
)
2626

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

assert/internal/unsafetests/unsafetests_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"unsafe"
77

8-
"github.com/wallester/testify/assert"
8+
"github.com/stretchr/testify/assert"
99
)
1010

1111
type ignoreTestingT struct{}

assert/yaml/yaml_fail.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package yaml
1111

1212
import "errors"
1313

14-
var errNotImplemented = errors.New("YAML functions are not available (see https://pkg.go.dev/github.com/wallester/testify/assert/yaml)")
14+
var errNotImplemented = errors.New("YAML functions are not available (see https://pkg.go.dev/github.com/stretchr/testify/assert/yaml)")
1515

1616
func Unmarshal([]byte, interface{}) error {
1717
return errNotImplemented

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/wallester/testify
1+
module github.com/stretchr/testify
22

33
// This should match the minimum supported version that is tested in
44
// .github/workflows/main.yml

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
1010
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
1111
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
1212
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
13-
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
1413
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
1514
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1615
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

http/test_round_tripper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package http
33
import (
44
"net/http"
55

6-
"github.com/wallester/testify/mock"
6+
"github.com/stretchr/testify/mock"
77
)
88

99
// Deprecated: Use [net/http/httptest] instead.

mock/mock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/pmezard/go-difflib/difflib"
1616
"github.com/stretchr/objx"
1717

18-
"github.com/wallester/testify/assert"
18+
"github.com/stretchr/testify/assert"
1919
)
2020

2121
// regex for GCCGO functions

0 commit comments

Comments
 (0)