{% extends "html/index.html" %} {% block script %} function openFunctionalDetailModal() { document.getElementById('functional-detail-modal-overlay').style.display = 'block'; document.getElementById('functional-detail-modal').style.display = 'block'; dragElement(document.getElementById('functional-detail-modal')); } // 关闭模态框 function closeFunctionalDetailModal() { document.getElementById('functional-detail-modal-overlay').style.display = 'none'; document.getElementById('functional-detail-modal').style.display = 'none'; } function dragElement(elmnt) { var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; elmnt.onmousedown = dragMouseDown; function dragMouseDown(e) { e = e || window.event; e.preventDefault(); // get the mouse cursor position at startup: pos3 = e.clientX; pos4 = e.clientY; document.onmouseup = closeDragElement; // call a function whenever the cursor moves: document.onmousemove = elementDrag; } function elementDrag(e) { e = e || window.event; e.preventDefault(); // calculate the new cursor position: pos1 = pos3 - e.clientX; pos2 = pos4 - e.clientY; pos3 = e.clientX; pos4 = e.clientY; // set the element's new position: elmnt.style.top = (elmnt.offsetTop - pos2) + "px"; elmnt.style.left = (elmnt.offsetLeft - pos1) + "px"; } function closeDragElement() { // stop moving when mouse button is released: document.onmouseup = null; document.onmousemove = null; } } {% endblock %} {% block coverage %}

Line Coverage

{% if coverages.line is none %} {% else %} {% set line_rate = 0 %} {% if coverages.line.total != 0 %} {% set line_rate = (coverages.line.hints / coverages.line.total * 100) %} {% endif %} {% endif %}
Coverage Rate Hint Lines Total Lines Detail
N/A N/A N/A N/A {{ line_rate|round(2) }}% {{ coverages.line.hints }} {{ coverages.line.total }} View Details

Functional Coverage

{% if coverages.functional is none %} {% else %} {% set point_rate = 0 %} {% if coverages.functional.point_num_total != 0 %} {% set point_rate = (coverages.functional.point_num_hints / coverages.functional.point_num_total * 100) %} {% endif %} {% endif %}
Coverage Rate Hint Points Total Points Detail
N/A N/A N/A N/A {{ point_rate|round(2) }}% {{ coverages.functional.point_num_hints }} {{ coverages.functional.point_num_total }} View Details

{% endblock %} {% block footer %}
Toffee Report, Do Not Edit.
{% endblock %}