"""Base test case class for coverage testing."""
# Status returns for the command line.
"""A base class for Coverage test cases."""
# Standard unittest setting: show me diffs even if they are very long.
# Tell newer unittest implementations to print long helpful messages.
"""Clean up the results of calls to `import_local_file`.
# So that we can re-import files, clean them out first.
"""Import a local file as a module.
as `modname`, and returns the module object.
"""Start coverage, import a file, then stop coverage.
The imported module is returned.
# Import the python file, executing it.
"""Return the module name to use for this test run."""
"""Convert a compact textual representation of arcs to a list of pairs.
the order of the input pairs.
"""Assert that the arc lists `a1` and `a2` are equal."""
# Make them into multi-line strings so we can see what's going wrong.
s1 = "\n".join(repr(a) for a in a1) + "\n"
s2 = "\n".join(repr(a) for a in a2) + "\n"
"""Check the coverage measurement of `text`.
# We write the code into a file so that we can import it.
# Coverage wants to deal with things as modules with file names.
# Get the analysis results, and check that they are right.
# found in the code.
analysis.arc_possibilities(), arcs, "Possible arcs differ"
"""Canonicalize the filename composed of the parts in `fparts`."""
"""Assert that `flist1` and `flist2` are the same set of file names."""
"""Assert that `fname` is a file that exists."""
"""Assert that `fname` is a file that doesn't exist."""
"""Assert that `s` starts with `prefix`."""
"""Run `args` through the command line.
current process. Exceptions may be thrown from deep in the code.
Asserts that `ret` is returned by `CoverageScript.command_line`.
"""Run the command-line `cmd` in a sub-process, and print its output.
Use this when you need to test the process behavior of coverage.
Returns the process' stdout text.
# if you don't use the executable's basename.
Returns a pair: the process' exit status and stdout text.
"""Return the report from the `cmd`, with some convenience added."""
"""Return the lines of the report, as a list."""
"""How many lines are in `report`?"""
"""Return a list of the lines in report, with the spaces squeezed."""
"""Return the last line of `report` with the spaces squeezed down."""