pact_consumer (pact_erlang v0.3.1)

View Source

Summary

Types

consumer/0

-type consumer() :: binary().

pact_interaction_details/0

-type pact_interaction_details() :: map().

pact_message_data/0

-type pact_message_data() :: map().

pact_mock_server_port/0

-type pact_mock_server_port() :: integer().

pact_pid/0

-type pact_pid() :: pid().

provider/0

-type provider() :: binary().

Functions

cleanup(PactPid)

-spec cleanup(pact_pid()) -> ok.

encode_value(Value)

-spec encode_value(map() | binary()) -> binary().

interaction(PactPid, Interaction)

-spec interaction(pact_pid(), pact_interaction_details()) -> {ok, pact_mock_server_port()}.

msg_interaction(PactPid, Interaction)

-spec msg_interaction(pact_pid(), pact_interaction_details()) -> pact_message_data().

v4(Consumer, Provider)

-spec v4(consumer(), provider()) -> pact_pid().

verify_interaction(PactPid)

-spec verify_interaction(pact_pid()) -> {ok, matched} | {error, not_matched}.

write_interaction(PactPid, Path)

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