Module pact_ffi::models::generators
source · Expand description
FFI functions to deal with generators and generated values
Structs§
- An iterator that enables FFI iteration over the generators for a particular generator category.
- A single key-value pair of a path and generator exported to the C-side.
Enums§
- Enum defining the categories that generators can be applied to
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) andProviderStateGenerator
(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
.