cli
cli copied to clipboard
Bump github.com/jarcoal/httpmock from 1.1.0 to 1.2.0
Bumps github.com/jarcoal/httpmock from 1.1.0 to 1.2.0.
Release notes
Sourced from github.com/jarcoal/httpmock's releases.
v1.2.0
New features:
NewNotFoundResponderhelps to detect a possible path mistake (final/or double/cases);- add
(*MockTransport).Respondersmethod allowing to list registered responders.Fixes:
url.RawPathis used instead ofurl.Pathwhen checking path alone for consistency with full URL check, which is always unescaped. Let 2 registered responders:
GET http://z.tld/foo%2fbarGET /foo%2fbarBefore this release:
GET http://z.tld/foo%2fbaris caught by 1GET http://unknown.tld/foo%2fbaris not caught as the tested path is/foo/barinstead of/foo%2fbarFrom this release:
GET http://z.tld/foo%2fbaris caught by 1GET http://unknown.tld/foo%2fbaris caught by 2save 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
anytype instead ofinterface{}, as appeared in go 1.18 (in a compatible manner with go<1.18).Enjoy!
Commits
fbf2267Merge pull request #128 from roboslone/v1da037fbfix concurrent map writes to oldClients70189fdMerge pull request #127 from jarcoal/td-example3cfaf8fdocs: add go-testdeep example377286aMerge pull request #126 from jarcoal/anyafe87eerefactor: since go1.18 use any instead of interface{}bbd5dcbMerge pull request #125 from jarcoal/go1186b1d576ci: enable go1.18 + upgrade golangci-lint to v1.45.00be0f8bMerge pull request #124 from jarcoal/responders9bab136feat: add (*MockTransport).Responders() method- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)