Commit dd1ec059 authored by Yuke Liao's avatar Yuke Liao Committed by Commit Bot

[Coverage] Implements components view in code coverage report.

This CL implements a feature to display code coverage by components.

The high-level structure of this change contains three different views:
- directory_view: organizing by top level directories under src/.
- component_view: organizing by components.
- file_view: organizing by each single file.

The directory_view is the default view to which index.html redirects to,
and each html report contains links to toggle between the three views.

Bug: 799632
Change-Id: I3df09fef2dfa0c8da2535f03d02d478b9c51bc8c
Reviewed-on: https://chromium-review.googlesource.com/894992
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Reviewed-by: default avatarAbhishek Arya <inferno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533896}
parent 29d078b8
This diff is collapsed.
<!doctype html>
<html>
<head>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<meta charset='UTF-8'>
<link rel='stylesheet' type='text/css' href='/Users/liaoyuke/bling/src/out/Coverage-iphonesimulator/html/style.css'>
</head>
<body>
<h2>Coverage Report</h2>
<p>Click <a href='http://clang.llvm.org/docs/SourceBasedCodeCoverage.html#interpreting-reports'>here</a> for information about interpreting this report.</p>
<div class='centered'>
<table>
<tr>
<td class='column-entry-left'>Directory Name</td>
<td class='column-entry'>Line Coverage</td>
</tr>
<tr class='light-row'>
<td>
<pre><a href='/Users/liaoyuke/bling/src/out/Coverage-iphonesimulator/html/coverage/Users/liaoyuke/bling/src/url/third_party/coverage.html'>third_party</a></pre>
</td>
<td class='column-entry-yellow'>
<pre> 90.31% (699/774)</pre>
</td>
</tr>
<tr>
<td class='column-entry-left'>File Name</td>
<td class='column-entry'>Line Coverage</td>
</tr>
<tr class='light-row'>
<td>
<pre><a href='/Users/liaoyuke/bling/src/out/Coverage-iphonesimulator/html/coverage/Users/liaoyuke/bling/src/url/url_canon_stdurl.cc.html'>url_canon_stdurl.cc</a></pre>
</td>
<td class='column-entry-yellow'>
<pre> 93.94% (124/132)</pre>
</td>
</tr>
</table>
</div>
</body>
</html>
\ No newline at end of file
</table>
</div>
</body>
</html>
\ No newline at end of file
......@@ -8,5 +8,5 @@
<body>
<h2>Coverage Report</h2>
<p>Click <a href='http://clang.llvm.org/docs/SourceBasedCodeCoverage.html#interpreting-reports'>here</a> for information about interpreting this report.</p>
<div class='centered'>
<table>
\ No newline at end of file
<p>View results by: <a href='{{ directory_view_href }}'>Directories</a> <a href='{{ component_view_href }}'>Components</a> <a href='{{ file_view_href }}'>Files</a></p>
<div class='centered'>
\ No newline at end of file
<table>
<tr>
<td class="column-entry-left">Path</td>
<td class="column-entry-left">{{ table_entry_type }}</td>
<td class="column-entry">Line Coverage</td>
<td class="column-entry">Function Coverage</td>
<td class="column-entry">Region Coverage</td>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment