Skip to content

Commit

Permalink
Merge pull request #644 from alexandear/fix-doc-comment
Browse files Browse the repository at this point in the history
fix: doc comments for TestAPI functions
  • Loading branch information
danielgtaylor authored Nov 7, 2024
2 parents a74067b + e54f3fb commit 37cc26f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions humatest/humatest.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ type TestAPI interface {
// request body. Anything else will panic.
//
// // Make a POST request
// api.PostCtx(ctx, "/foo", bytes.NewReader(`{"foo": "bar"}`))
// api.PostCtx(ctx, "/foo", strings.NewReader(`{"foo": "bar"}`))
//
// // Make a POST request with a custom header.
// api.PostCtx(ctx, "/foo", "X-My-Header: my-value", MyBody{Foo: "bar"})
Expand All @@ -102,7 +102,7 @@ type TestAPI interface {
// body. Anything else will panic.
//
// // Make a POST request
// api.Post("/foo", bytes.NewReader(`{"foo": "bar"}`))
// api.Post("/foo", strings.NewReader(`{"foo": "bar"}`))
//
// // Make a POST request with a custom header.
// api.Post("/foo", "X-My-Header: my-value", MyBody{Foo: "bar"})
Expand All @@ -115,7 +115,7 @@ type TestAPI interface {
// body. Anything else will panic.
//
// // Make a PUT request
// api.PutCtx(ctx, "/foo", bytes.NewReader(`{"foo": "bar"}`))
// api.PutCtx(ctx, "/foo", strings.NewReader(`{"foo": "bar"}`))
//
// // Make a PUT request with a custom header.
// api.PutCtx(ctx, "/foo", "X-My-Header: my-value", MyBody{Foo: "bar"})
Expand All @@ -128,7 +128,7 @@ type TestAPI interface {
// body. Anything else will panic.
//
// // Make a PUT request
// api.Put("/foo", bytes.NewReader(`{"foo": "bar"}`))
// api.Put("/foo", strings.NewReader(`{"foo": "bar"}`))
//
// // Make a PUT request with a custom header.
// api.Put("/foo", "X-My-Header: my-value", MyBody{Foo: "bar"})
Expand All @@ -141,7 +141,7 @@ type TestAPI interface {
// request body. Anything else will panic.
//
// // Make a PATCH request
// api.PatchCtx(ctx, "/foo", bytes.NewReader(`{"foo": "bar"}`))
// api.PatchCtx(ctx, "/foo", strings.NewReader(`{"foo": "bar"}`))
//
// // Make a PATCH request with a custom header.
// api.PatchCtx(ctx, "/foo", "X-My-Header: my-value", MyBody{Foo: "bar"})
Expand All @@ -154,7 +154,7 @@ type TestAPI interface {
// body. Anything else will panic.
//
// // Make a PATCH request
// api.Patch("/foo", bytes.NewReader(`{"foo": "bar"}`))
// api.Patch("/foo", strings.NewReader(`{"foo": "bar"}`))
//
// // Make a PATCH request with a custom header.
// api.Patch("/foo", "X-My-Header: my-value", MyBody{Foo: "bar"})
Expand Down

0 comments on commit 37cc26f

Please sign in to comment.