Skip to content

Conversation

@renovate
Copy link

@renovate renovate bot commented Jan 25, 2022

Mend Renovate

This PR contains the following updates:

Package Type Update Change
github.com/jarcoal/httpmock require minor v1.0.8 -> v1.2.0

Release Notes

jarcoal/httpmock

v1.2.0

Compare Source

New features:

Fixes:

  • url.RawPath is used instead of url.Path when checking path alone for consistency with full URL check, which is always unescaped.
    Let 2 registered responders:

    1. GET http://z.tld/foo%2fbar
    2. GET /foo%2fbar

    Before this release:

    • GET http://z.tld/foo%2fbar is caught by 1
    • GET http://unknown.tld/foo%2fbar is not caught as the tested path is /foo/bar instead of /foo%2fbar

    From this release:

    • GET http://z.tld/foo%2fbar is caught by 1
    • GET http://unknown.tld/foo%2fbar is caught by 2
  • save of old clients transports is now protected from concurrent writes (@​roboslone).

Miscellaneous:

  • now use go-testdeep to simplify tests (saves >500 test lines);
  • go minimal version required is now 1.9;
  • CI tests using go1.18 & golangci-lint v1.45.0;
  • signatures (and so documentation) now use any type instead of interface{}, as appeared in go 1.18 (in a compatible manner with go<1.18).

Enjoy!

v1.1.0

Compare Source

New features:

  • tell the user about possible mistakes concerning the mocked HTTP method;
  • by default, registering a Responder for a lower-cased method among CONNECT, DELETE, GET, HEAD, OPTIONS, POST, PUT and TRACE, produces a panic as it is probably a mistake. This behavior can be disabled by setting new MockTransport.DontCheckMethod field to true prior to the Register*Responder*() call;
  • registering a nil Responder now unregisters it and zeroes its statistics;
  • add Responder methods:

Fix:

Doc:

  • document that (re-)registering a Responder zeroes its statistics.

Enjoy!


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

@github-actions
Copy link

github-actions bot commented Jan 25, 2022

Unit Test Results

    5 files  ±0    16 suites  ±0   1s ⏱️ ±0s
226 tests ±0  224 ✔️ ±0  2 💤 ±0  0 ±0 

Results for commit deecefb. ± Comparison against base commit 434d293.

♻️ This comment has been updated with latest results.

@renovate renovate bot force-pushed the renovate/github.com-jarcoal-httpmock-1.x branch 2 times, most recently from 0bdb0f5 to f98861a Compare February 10, 2022 04:29
@renovate renovate bot changed the title Update module github.com/jarcoal/httpmock to v1.1.0 Update module github.com/jarcoal/httpmock to v1.2.0 May 16, 2022
@renovate renovate bot force-pushed the renovate/github.com-jarcoal-httpmock-1.x branch from f98861a to deecefb Compare May 16, 2022 00:19
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit deecefb and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 51.1% (0.0% change).

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants