Exq.Mock (exq v0.19.0) View Source

Link to this section 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

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

List of enqueued jobs.

This only works if the mode is set to :fake

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
Link to this function

start_link(options \\ [])

View Source

Start Mock server

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