Function pact_mock_server::mock_server_matched

source ·
pub fn mock_server_matched(mock_server_port: i32) -> bool
Expand description

Function to check if a mock server has matched all its requests. The port number is passed in, and if all requests have been matched, true is returned. False is returned if there is no mock server on the given port, or if any request has not been successfully matched.

Note that for mock servers provided by plugins, if the call to the plugin fails, a value of false will also be returned.