Module pact_ffi::models::generators

source ·
Expand description

FFI functions to deal with generators and generated values

Structs§

Enums§

Functions§

  • Generate an integer value using the provided generator and an optional JSON payload containing any generator context. The context value is used for generators like ProviderStateGenerator (which should be the values returned from the Provider State callback function).
  • Generate a string value using the provided generator and an optional JSON payload containing any generator context. The context value is used for generators like MockServerURL (which should contain details about the running mock server) and ProviderStateGenerator (which should be the values returned from the Provider State callback function).
  • Get the JSON form of the generator.
  • Free the iterator when you’re done using it.
  • Get the next path and generator out of the iterator, if possible.
  • Free a pair of key and value returned from pactffi_generators_iter_next.