Skip to content

Commit f1b52ff

Browse files
committed
0.1.1
Fixes: - removed obsolete code from sourcefile row renderer
1 parent d93f110 commit f1b52ff

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/templates/elements/sourcefiles.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ function Render-SourcefileRow {
2020
$name = Split-Path -Path $object.'@name' -Leaf
2121
$result = $result.Replace('<!--page.location-->', $pageLocation)
2222
$result = $result.Replace('<!--item.name-->', $name)
23-
$result = $result.Replace('<!--classes.count-->', $object.'class'.Count)
24-
$result = $result.Replace('<!--sourcefiles.count-->', $object.sourcefile.Count)
2523

2624
$result = Render-CounterRowData -template $result -counters $object.counter -counterType 'INSTRUCTION' -placeholder '<!--counter.instructions-->'
2725
$result = Render-CounterRowData -template $result -counters $object.counter -counterType 'BRANCH' -placeholder '<!--counter.branches-->'

tests/templates/elements/sourcefiles.Tests.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ Describe 'Render-SourcefileRow' {
99
$template = @'
1010
<!--page.location-->
1111
<!--item.name-->
12-
<!--classes.count-->
13-
<!--sourcefiles.count-->
1412
<!--counter.instructions-->
1513
<!--counter.branches-->
1614
<!--counter.lines-->
@@ -23,8 +21,6 @@ something
2321
$expected = @'
2422
../../../sources/directory\sample.ps1.html
2523
sample.ps1
26-
2
27-
4
2824
1 - 66 - 67 - 98.51%
2925
3026
1 - 53 - 54 - 98.15%

0 commit comments

Comments
 (0)