Function pact_mock_server::mock_server_mismatches

source ·
pub fn mock_server_mismatches(mock_server_port: i32) -> Option<String>
Expand description

Gets all the mismatches from a mock server in JSON format. The port number of the mock server is passed in, and the results are returned in JSON format as a String.

If there is no mock server with the provided port number, None is returned.

For mock servers provided by plugins, if the call to the plugin fails, a JSON value with an error attribute will be returned.