Pact.MockServer (pact_consumer_ex v0.1.0)

A mock server that handles the requests described in a Pact, intended for use in tests, and validates that the requests made to that server are correct.

Because this is intended for use in tests, it will panic if something goes wrong.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

path(pid, path)

@spec path(pid :: pid(), path :: String.t()) :: String.t()

start(pact_builder)

@spec start(pact_builder :: Pact.Native.PactConsumer.PactBuilder.t()) ::
  :ignore | {:error, any()} | {:ok, pid()}

url(pid)

@spec url(pid :: pid()) :: String.t()