{# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 #}
{# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt #}

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>{{monitored_method.info.full_name}}</title>
    {# IE8 rounds line-height incorrectly, and adding this emulateIE7 line makes it right! #}
    {# http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/7684445e-f080-4d8f-8529-132763348e21 #}
    <meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<!--    <link rel="icon" sizes="32x32" href="favicon_32.png">-->
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🔎</text></svg>">
    <link rel="stylesheet" href="highlight.css" type="text/css">
</head>

<body class="pyfile">

<div id="source">

    <div class="highlight">
        <div id="header">
            <div class="content">
                <h1>Method: {{monitored_method.info.full_name_escaped}}</h1>
                <span>Coverage: {{monitored_method.info.coverage_ratio}}% ({{monitored_method.info.run_lines_count}}/{{monitored_method.info.executable_lines_count}}),</span>
                <span>Tests: {{monitored_method.info.total_tests}}, </span>
                <span>Calls: {{monitored_method.info.total_calls}}, </span>
                <span>Exceptions: {{monitored_method.info.total_exceptions}}, </span>
                <span>Flows: {{monitored_method.info.total_flows}}</span>
                <br><a href="./index.html">Back</a>
            </div>
        </div>

        {% for flow in monitored_method.flows %}
            <p><b>Flow {{flow.pos}}</b>: {{flow.info.call_count}} calls ({{flow.info.call_ratio}}%)</p>

            {% for each in flow.info.arg_values %}
                <p><button class="input"><span>&#8594;</span> {{each.name}}</button> {{each.value}}</p>
            {% endfor %}

            {% if flow.info.yield_values %}
                <p><button class="output"><span>&#8647; yield</span></button> {{flow.info.yield_values}}</p>
            {% endif %}

            {% if flow.info.return_values %}
                <p><button class="output"><span>&#8617; return</span></button> {{flow.info.return_values}}</p>
            {% endif %}

            {% if flow.info.exception_values %}
                <p><button class="warning"><span>&#9888; exception</span></button> {{flow.info.exception_values}}</p>
            {% endif %}

            <button class="run" title="lines run...">{{flow.info.run_count}} run</button>
            <button class="not_run" title="lines not run...">{{flow.info.not_run_count}} not run</button>
            <pre>
                {% for line in flow.info.lines %}
                {% if line.is_run %}
<span class="num"><a href="#{{line.lineno}}">{{line.lineno}}</a></span><span class="full run">{{line.html}}</span>
                {% endif %}
                {% if line.is_not_run %}
<span class="num"><a href="#{{line.lineno}}">{{line.lineno}}</a></span><span class="full not_run">{{line.html}}</span>
                {% endif %}
                {% if line.is_not_exec %}
<span class="num"><a href="#{{line.lineno}}">{{line.lineno}}</a></span><span>{{line.html}}</span>
                {% endif %}
                {% endfor %}
            </pre>
        {% endfor %}

    </div>
</div>

<i class="bi bi-arrow-down"></i>

</body>
</html>
