Crate pact_verifier[][src]

Expand description

The pact_verifier crate provides the core logic to performing verification of providers. It implements the V3 (https://github.com/pact-foundation/pact-specification/tree/version-3) and V4 Pact specification (https://github.com/pact-foundation/pact-specification/tree/version-4).

Re-exports

pub use callback_executors::NullRequestFilterExecutor;
pub use crate::pact_broker::ConsumerVersionSelector;
pub use crate::pact_broker::PactsForVerificationRequest;

Modules

callback_executors

Executor abstraction for executing callbacks to user code (request filters, provider state change callbacks)

pact_broker

Structs and functions for interacting with a Pact Broker

Structs

ProviderInfo

Information about the Provider to verify

VerificationOptions

Options to use when running the verification

Enums

FilterInfo

Filter information used to filter the interactions that are verified

MismatchResult

Result of performing a match

PactSource

Source for loading pacts

Functions

verify_pact

Internal function, public for testing purposes

verify_provider

Verify the provider with the given pact sources.

verify_provider_async

Verify the provider with the given pact sources (async version)