Skip to content

Commit 21f3a7d

Browse files
committed
Strip whitespace from coverage.list items
1 parent f13bdf4 commit 21f3a7d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [3.1.2] - 2024-07-12
9+
10+
### Fixed
11+
- Now the code strips leading and trailing whitespace from coverage.list, so "PackageName.PKG " will still be loaded properly
12+
813
## [3.1.0] - 2024-07-05
914

1015
### Added

cls/TestCoverage/Manager.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ ClassMethod GetCoverageTargetsForFile(pFileName As %String, Output pTargetArray)
374374

375375
For tLineIndex=1:1:$Get(tFileLines) {
376376
Set tLine = tFileLines(tLineIndex)
377-
377+
Set tLine = $zstrip(tLine, "<>W")
378378
// Skip blank lines
379379
If (tLine = "") {
380380
Continue

module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Export generator="Cache" version="25">
33
<Document name="TestCoverage.ZPM"><Module>
44
<Name>TestCoverage</Name>
5-
<Version>3.1.0</Version>
5+
<Version>3.1.2</Version>
66
<Description>Run your typical ObjectScript %UnitTest tests and see which lines of your code are executed. Includes Cobertura-style reporting for use in continuous integration tools.</Description>
77
<Packaging>module</Packaging>
88
<Resource Name="TestCoverage.PKG" Directory="cls" />

0 commit comments

Comments
 (0)