Function pact_ffi::matching::pactffi_matches_u64_value
source · #[no_mangle]
pub extern "C" fn pactffi_matches_u64_value(
matching_rule: *const MatchingRule,
expected_value: u64,
actual_value: u64,
cascaded: u8
) -> *const c_char
Expand description
Determines if the unsigned integer value matches the given matching rule. If the value matches OK,
will return a NULL pointer. If the value does not match, will return a error message as
a NULL terminated string. The error message pointer will need to be deleted with the
pactffi_string_delete
function once it is no longer required.
- matching_rule - pointer to a matching rule
- expected_value - value we expect to get
- actual_value - value to match
- cascaded - if the matching rule has been cascaded from a parent. 0 == false, 1 == true
§Safety
The matching rule pointer must be a valid pointer.