Function pact_ffi::mock_server::handles::pactffi_new_pact

source ยท
#[no_mangle]
pub extern "C" fn pactffi_new_pact(
    consumer_name: *const c_char,
    provider_name: *const c_char
) -> PactHandle
Expand description

Creates a new Pact model and returns a handle to it.

  • consumer_name - The name of the consumer for the pact.
  • provider_name - The name of the provider for the pact.

Returns a new PactHandle. The handle will need to be freed with the pactffi_free_pact_handle method to release its resources.