mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-30 23:36:39 +08:00
Don't define doctests case if there are no modules
This commit is contained in:
parent
81fccfd436
commit
3504bac3f6
1 changed files with 4 additions and 0 deletions
|
|
@ -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} ->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue