Releases: lipanski/mockito
Releases · lipanski/mockito
0.23.2
0.23.1
0.23.0
- [Breaking] Increased the minimum supported Rust toolchain to 1.35.0.
- Introduced the
Mock#expect_at_least
andMock#expect_at_most
functions to be used together withMock#assert
. - Bumped the percent-encoding dependency.
- Introduced
cargo fmt
formatting as part of CI.
Thanks to @kornelski @xneomac @thomasetter
0.22.0
0.21.0
0.20.0
- Introduced the
Matcher::PartialJson
andMatcher::PartialJsonString
variants to match a JSON String partially (inclusion).
Thanks to @matteosister
0.19.0
- Introduced the
Mock#with_body_from_fn
function, which allows generating the response body programmatically.
Thanks to @kornelski
0.18.0
- [Breaking] The minimum supported Rust version was increased to 1.32, after upgrading the rand crate dependency to 0.7.0.
- Introduced
Matcher::AllOf
, which can be used to check a set of matchers in conjunction. It works in a similar way to the existingMatcher::AnyOf
. - Introduced
Matcher::UrlEncoded
to match key/value pairs in URL-encoded strings. - Introduced
Mock#match_query
to be able to match the URL query part distinctly from the path. The function supports all known matchers but works best withMatcher::UrlEncoded
. The old behaviour of matching the query as part of the path argument in amock
call has been preserved, but usingMock#match_query
has the effect of overriding that.
🎈 🎈 🎈
0.17.1
- Exclude CI & other unrelated files from packaging and turn the binary into an example.
Thanks to @ignatenkobrain