Packages
MockMe is a simple mock server used to mock out your third party services in your tests. Unlike many mocking solutions, MockMe starts a real HTTP server and serves real static responses which may be toggled easily using the `MockMe.set_response(:test, :result)` function in your tests.
Current section
Files
Jump to
Current section
Files
lib/mock_me/application.ex
defmodule MockMe.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
children = [
{MockMe.State, [%{}]},
{DynamicSupervisor, strategy: :one_for_one, name: MockMe.DynamicSupervisor}
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: MockMe.Supervisor]
Supervisor.start_link(children, opts)
end
end