Releases: lipanski/mockito
Releases · lipanski/mockito
1.7.0
1.6.1
- Added
Mock::with_header_from_request
allowing you to set the header dynamically by using a closure which exposes theRequest
object
Thanks to @alex-kattathra-johnson
1.6.0
- Introduced
Mock::match_request
which exposes theRequest
object via a closure and can be used to build custom matchers
1.5.0
1.4.0
1.3.1
1.3.0
- Introduced
Server::new_with_opts
,Server::new_with_opts_async
and theServerOpts
struct to allow configuring the server host, port and enabling auto-asserts (see next item) - Added the
assert_on_drop
server option that allows you to automatically callassert()
whenever your mocks go out of scope (defaults to false) - Expose
Server::socket_address()
to return the raw serverSocketAddr
- Use only required features for dependencies
- Accept
hyper::header::HeaderValue
as amatch_header()
value
Thanks to @andrewtoth @alexander-jackson
1.2.0
- [Breaking] The minimum supported Rust version was bumped to 1.68.0
- The server pool was limited to 20 servers for
mac_os
targets to prevent hitting the file descriptor limit
Thanks to @kornelski
1.1.1
1.1.0
- Enable the server pool properly and set the server pool size to 50