Skip to content

Commit 6bfed73

Browse files
authored
Merge pull request #1349 from davidjb/patch-1
README: fix URLs to point to go.dev/pkg.go.dev
2 parents c6ffad3 + d099934 commit 6bfed73

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ Features include:
1616
Get started:
1717

1818
* Install testify with [one line of code](#installation), or [update it with another](#staying-up-to-date)
19-
* For an introduction to writing test code in Go, see http://golang.org/doc/code.html#Testing
20-
* Check out the API Documentation http://godoc.org/github.com/stretchr/testify
21-
* To make your testing life easier, check out our other project, [gorc](http://github.com/stretchr/gorc)
22-
* A little about [Test-Driven Development (TDD)](http://en.wikipedia.org/wiki/Test-driven_development)
19+
* For an introduction to writing test code in Go, see https://go.dev/doc/code#Testing
20+
* Check out the API Documentation https://pkg.go.dev/github.com/stretchr/testify
21+
* To make your testing life easier, check out our other project, [gorc](https://github.com/stretchr/gorc)
22+
* A little about [Test-Driven Development (TDD)](https://en.wikipedia.org/wiki/Test-driven_development)
2323

2424

2525

26-
[`assert`](http://godoc.org/github.com/stretchr/testify/assert "API documentation") package
26+
[`assert`](https://pkg.go.dev/github.com/stretchr/testify/assert "API documentation") package
2727
-------------------------------------------------------------------------------------------
2828

2929
The `assert` package provides some helpful methods that allow you to write better test code in Go.
@@ -100,16 +100,16 @@ func TestSomething(t *testing.T) {
100100
}
101101
```
102102

103-
[`require`](http://godoc.org/github.com/stretchr/testify/require "API documentation") package
103+
[`require`](https://pkg.go.dev/github.com/stretchr/testify/require "API documentation") package
104104
---------------------------------------------------------------------------------------------
105105

106106
The `require` package provides same global functions as the `assert` package, but instead of returning a boolean result they terminate current test.
107107
These functions must be called from the goroutine running the test or benchmark function, not from other goroutines created during the test.
108108
Otherwise race conditions may occur.
109109

110-
See [t.FailNow](http://golang.org/pkg/testing/#T.FailNow) for details.
110+
See [t.FailNow](https://pkg.go.dev/testing#T.FailNow) for details.
111111

112-
[`mock`](http://godoc.org/github.com/stretchr/testify/mock "API documentation") package
112+
[`mock`](https://pkg.go.dev/github.com/stretchr/testify/mock "API documentation") package
113113
----------------------------------------------------------------------------------------
114114

115115
The `mock` package provides a mechanism for easily writing mock objects that can be used in place of real objects when writing test code.
@@ -219,11 +219,11 @@ func TestSomethingElse2(t *testing.T) {
219219
}
220220
```
221221

222-
For more information on how to write mock code, check out the [API documentation for the `mock` package](http://godoc.org/github.com/stretchr/testify/mock).
222+
For more information on how to write mock code, check out the [API documentation for the `mock` package](https://pkg.go.dev/github.com/stretchr/testify/mock).
223223

224-
You can use the [mockery tool](http://github.com/vektra/mockery) to autogenerate the mock code against an interface as well, making using mocks much quicker.
224+
You can use the [mockery tool](https://github.com/vektra/mockery) to autogenerate the mock code against an interface as well, making using mocks much quicker.
225225

226-
[`suite`](http://godoc.org/github.com/stretchr/testify/suite "API documentation") package
226+
[`suite`](https://pkg.go.dev/github.com/stretchr/testify/suite "API documentation") package
227227
-----------------------------------------------------------------------------------------
228228

229229
The `suite` package provides functionality that you might be used to from more common object-oriented languages. With it, you can build a testing suite as a struct, build setup/teardown methods and testing methods on your struct, and run them with 'go test' as per normal.
@@ -267,7 +267,7 @@ func TestExampleTestSuite(t *testing.T) {
267267

268268
For a more complete example, using all of the functionality provided by the suite package, look at our [example testing suite](https://github.com/stretchr/testify/blob/master/suite/suite_test.go)
269269

270-
For more information on writing suites, check out the [API documentation for the `suite` package](http://godoc.org/github.com/stretchr/testify/suite).
270+
For more information on writing suites, check out the [API documentation for the `suite` package](https://pkg.go.dev/github.com/stretchr/testify/suite).
271271

272272
`Suite` object has assertion methods:
273273

0 commit comments

Comments
 (0)