LukeMathWalker / wiremock-rs

HTTP mocking to test Rust applications.
Apache License 2.0
617 stars 70 forks source link

Allow explicit `verify()` #50

Closed tl-alex-butler closed 3 years ago

tl-alex-butler commented 3 years ago

This pr makes MockServer::verify public.

Only allowing verification on drop isn't ideal for all use cases. Public verify allows verify/reset reuse of a server, e.g. allowing more useful / faster fails in a scenario test. It's a small change that won't affect any previous usage.