File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 24
24
td .num { text-align : right; }
25
25
.missed-line { background : # fee ; }
26
26
.hit-line { background : # efe ; }
27
+ tr .full-coverage { background : # dfd ; }
28
+ tr .full-coverage : hover { background : # cfc ; }
27
29
pre { overflow : auto; }
28
30
.code-line { display : block; margin : 0 ; padding : 0.1rem 0 ; }
29
31
.code-line .ln { color : # 888 ; display : inline-block; min-width : 3em ; }
259
261
const full = parentPath ? parentPath + '/' + name : name ;
260
262
if ( child . file ) {
261
263
const tr = document . createElement ( 'tr' ) ;
264
+ if ( child . file . linePct >= 100 ) tr . classList . add ( 'full-coverage' ) ;
262
265
tr . dataset . parent = parentPath ;
263
266
tr . innerHTML = `<td class="file" style="padding-left:${ depth * 1.25 } rem">${ escapeHtml ( name ) } </td>` +
264
267
`<td class="num">${ child . file . linePct . toFixed ( 1 ) } %</td><td class="num">${ child . file . totals . LH } /${ child . file . totals . LF } </td>` +
273
276
const branchPct = pct ( child . totals . BRH , child . totals . BRF ) ;
274
277
const tr = document . createElement ( 'tr' ) ;
275
278
tr . className = 'folder' ;
279
+ if ( linePct >= 100 ) tr . classList . add ( 'full-coverage' ) ;
276
280
tr . dataset . path = full ;
277
281
tr . dataset . parent = parentPath ;
278
282
tr . innerHTML = `<td class="file" style="padding-left:${ depth * 1.25 } rem">${ escapeHtml ( name ) } </td>` +
You can’t perform that action at this time.
0 commit comments