Skip to content

Commit

Permalink
vet
Browse files Browse the repository at this point in the history
  • Loading branch information
adamluzsi committed Jun 23, 2024
1 parent ed6bc22 commit dfc5b7c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions assert/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,27 +732,27 @@ func ExampleAsserter_OneOf() {
}, "optional assertion explanation")
}

func ExampleMatch() {
func ExampleMatchRegexp() {
var tb testing.TB
assert.MatchRegexp(tb, "42", "[0-9]+")
assert.MatchRegexp(tb, "forty-two", "[a-z]+")
assert.MatchRegexp(tb, []byte("forty-two"), "[a-z]+")
}

func ExampleAsserter_Match() {
func ExampleAsserter_MatchRegexp() {
var tb testing.TB
assert.Must(tb).MatchRegexp("42", "[0-9]+")
assert.Must(tb).MatchRegexp("forty-two", "[a-z]+")
}

func ExampleNotMatch() {
func ExampleNotMatchRegexp() {
var tb testing.TB
assert.NotMatchRegexp(tb, "42", "^[a-z]+")
assert.NotMatchRegexp(tb, "forty-two", "^[0-9]+")
assert.NotMatchRegexp(tb, []byte("forty-two"), "^[0-9]+")
}

func ExampleAsserter_NotMatch() {
func ExampleAsserter_NotMatchRegexp() {
var tb testing.TB
assert.Must(tb).NotMatchRegexp("42", "^[a-z]+")
assert.Must(tb).NotMatchRegexp("forty-two", "^[0-9]+")
Expand Down
2 changes: 1 addition & 1 deletion httpspec/example_Context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"go.llib.dev/testcase/httpspec"
)

func ExampleLetContext_withValue() {
func ExampleContext_withValue() {
s := testcase.NewSpec(testingT)

httpspec.Handler.Let(s, func(t *testcase.T) http.Handler { return MyHandler{} })
Expand Down
2 changes: 1 addition & 1 deletion httpspec/example_Method_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"go.llib.dev/testcase/httpspec"
)

func ExampleLetMethodValue() {
func ExampleMethod_letValue() {
s := testcase.NewSpec(testingT)

httpspec.Handler.Let(s, func(t *testcase.T) http.Handler {
Expand Down

0 comments on commit dfc5b7c

Please sign in to comment.