diff --git a/assert/example_test.go b/assert/example_test.go index a219814..70b6895 100644 --- a/assert/example_test.go +++ b/assert/example_test.go @@ -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]+") diff --git a/httpspec/example_Context_test.go b/httpspec/example_Context_test.go index fb31c2e..bc0ef10 100644 --- a/httpspec/example_Context_test.go +++ b/httpspec/example_Context_test.go @@ -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{} }) diff --git a/httpspec/example_Method_test.go b/httpspec/example_Method_test.go index 4a9ea2b..fe63a3a 100644 --- a/httpspec/example_Method_test.go +++ b/httpspec/example_Method_test.go @@ -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 {