src/cpython/doctest

Procs

proc testmod(): tuple[failure_count, test_count: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc testfile(filename: string; module_relative: bool; name, package: string): tuple[
    failure_count, test_count: int] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc testfile(filename: string; module_relative: bool; name: string): tuple[
    failure_count, test_count: int] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc testfile(filename: string; module_relative: bool): tuple[
    failure_count, test_count: int] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc testfile(filename: string): tuple[failure_count, test_count: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc run_docstring_examples(f: string): tuple[failure_count, test_count: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc script_from_examples(examples: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc debug_src(sources: string; pm = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}