How to use the gcovr.summary_generator.print_summary function in gcovr

To help you get started, we’ve selected a few gcovr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gcovr / gcovr / gcovr / __main__.py View on Github external
output = OutputOrDefault.choose(output_choices,
                                            default=default_output)
            if output is default_output:
                default_output = None
            if output is not None:
                generator(covdata, output.value, options)
                reports_were_written = True
            else:
                on_no_output()

    if default_output is not None and default_output.value is not None:
        logger.warn("--output={!r} option was provided but not used.",
                    default_output.value)

    if options.print_summary:
        print_summary(covdata)