Current section
Files
Jump to
Current section
Files
lib/excheck.ex
defmodule ExCheck do
@moduledoc """
Provides QuickCheck style testing feature.
add 'use ExCheck' in the ExUnit test files.
"""
defmacro __using__(_opts \\ []) do
quote do
import ExCheck.Predicate
import ExCheck.Statement
import :triq_dom, only: :functions # Import generators defined in :triq
end
end
@doc """
Check the property defined in the specified target (module or method).
If the module name is specified, check all the methods prefixed with 'prop_'.
"""
def check(target) do
:triq.check(target)
end
end