_PARSER = argparse.ArgumentParser(
prog="code-coverage-test-gap.py", usage="%(prog)s [options]"
)
_PARSER.add_argument( "tstfiles",
nargs="+",
type=str,
help="the test files you want to check code coverage for"
+ "(must be at least one)",
)
_PARSER.add_argument( "--gap-root",
nargs="?",
type=str,
help="the gap root directory (default: ~/gap)",
default="~/gap/",
)
_PARSER.add_argument( "--open",
nargs="?",
type=str,
help=("open the html page for this file (default: None)"),
default=None,
)
if exists("gap") and isdir("gap"):
_PROFILE_DIR = "/gap/" elif exists("lib") and isdir("lib"):
_PROFILE_DIR = "/lib/" else:
sys.exit(f"{_ERR_PREFIX}no directory gap or lib to profile!\033[0m")
_ARGS.gap_root = os.path.expanduser(_ARGS.gap_root) ifnot (exists(_ARGS.gap_root) and isdir(_ARGS.gap_root)):
sys.exit(f"{_ERR_PREFIX}can't find GAP root directory!\033[0m")
for f in _ARGS.tstfiles: ifnot (exists(f) and isfile(f)):
sys.exit(f"{_ERR_PREFIX}{f} does not exist!\033[0m")
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.