Don't define doctests case if there are no modules

This commit is contained in:
Jonatan Kłosko 2022-11-11 21:58:53 +01:00
parent 81fccfd436
commit 3504bac3f6

View file

@ -11,6 +11,10 @@ if Version.compare(System.version(), "1.14.2") != :lt do
Runs doctests in the given modules.
"""
@spec run(list(module())) :: :ok
def run(modules)
def run([]), do: :ok
def run(modules) do
case define_test_module(modules) do
{:ok, test_module} ->