eqc_ex v1.4.2 EQC.Mocking

This module contains macros to be used with Quviq QuickCheck. It defines Elixir versions of the Erlang macros found in eqc/include/eqc_mocking.hrl. For detailed documentation of the macros, please refer to the QuickCheck documentation.

Copyright (C) Quviq AB, 2014-2016.

Example

Typical use in Component module definitions

require EQC.Mocking

  def api_spec do
    EQC.Mocking.api_spec [
      modules: [
        EQC.Mocking.api_module name: :mock
      ]
    ]
  end

QuickCheck dependency

Note that mocking only works with the full version of QuickCheck, not with QuickCheck Mini. In order to use this module, one has to compile it with QuickCheck installed. This compilation will then generate the Elixir Records corresponding to the records defined in the Erlang header files of QuickCheck.

Summary

Macros

api_fun(args \\ [])
api_fun(record, args)
api_module(args \\ [])
api_module(record, args)
api_spec(args \\ [])
api_spec(record, args)