Exq.Mock (exq v0.23.0)

View Source

Summary

Functions

Returns a specification to start this module under a supervisor.

List of enqueued jobs.

Set the mode for current test

Start Mock server

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

jobs()

List of enqueued jobs.

This only works if the mode is set to :fake

set_mode(mode)

Set the mode for current test

  • :redis - jobs get enqueued and processed via redis.
  • :fake - jobs get enqueued in a local queue
  • :inline - jobs get executed in the same process

start_link(options \\ [])

Start Mock server

  • mode - The default mode that's used for all tests. See set_mode/1 for details.