[−][src]Function pact_mock_server::create_mock_server
pub extern "C" fn create_mock_server(
pact_json: &str,
addr: SocketAddr
) -> Result<i32, MockServerError>
Creates a mock server. Requires the pact JSON as a string as well as the port for the mock server to run on. A value of 0 for the port will result in a port being allocated by the operating system. The port of the mock server is returned.