PactElixir v0.2.0 PactElixir.MockServerSupervisor View Source

Supervises PactMockServers so that they can be controlled even after the test suite has finished. The Supervisor does not restart a failed PactMockServer as the information like successful requests is stored only there and therefor lost.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Callback invoked to start the supervisor and during hot code upgrades

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback invoked to start the supervisor and during hot code upgrades.

Developers typically invoke DynamicSupervisor.init/1 at the end of their init callback to return the proper supervision flags.

Callback implementation for DynamicSupervisor.init/1.

Link to this function start_mock_server(provider) View Source
Link to this function terminate_child(provider_pid) View Source