View Source pact_consumer (pact_erlang v0.2.0)

Summary

Types

-type consumer() :: binary().
Link to this type

pact_interaction_details/0

View Source
-type pact_interaction_details() :: map().
Link to this type

pact_mock_server_port/0

View Source
-type pact_mock_server_port() :: integer().
-type pact_pid() :: pid().
-type provider() :: binary().

Functions

-spec cleanup(pact_pid()) -> ok.
Link to this function

interaction(PactPid, Interaction)

View Source
-spec interaction(pact_pid(), pact_interaction_details()) -> {ok, pact_mock_server_port()}.
-spec v4(consumer(), provider()) -> pact_pid().
Link to this function

verify_interaction(PactPid)

View Source
-spec verify_interaction(pact_pid()) -> {ok, matched} | {error, not_matched}.
Link to this function

write_interaction(PactPid, Path)

View Source
-spec write_interaction(pact_pid(), binary()) -> ok.