Any
Any
Matches any request. Should not be combined with other matchers.
When
method
any()
Matches any request.
Example:
let mock = Mock::new(|when, then| {
when.any();
then.ok();
})
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Matches any request. Should not be combined with other matchers.
When
methodany()
Matches any request.
Example:
let mock = Mock::new(|when, then| {
when.any();
then.ok();
})