Skip to content

Commit 6656d0b

Browse files
committed
fix: made the unit test for coverage.list device agnostic
1 parent 4e33f7f commit 6656d0b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

internal/testing/unit_tests/UnitTest/TestCoverage/Unit/TestCoverageList.cls

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ ClassMethod FindCoverageList(directory As %String = "") As %String
1717
set type = rset.%Get("Type")
1818

1919
if (type = "F") {
20-
if ($piece(name, "\", *) = "samplecovlist.list") {
21-
return name
22-
}
20+
do ##class(%File).Deconstruct(name, .dirs)
21+
if (dirs(dirs) = "samplecovlist.list") {
22+
return name
23+
}
2324
} elseif (type = "D"){
2425
do ..FindCoverageList(name)
2526
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TestCoverage.Data.PKG
22
- TestCoverage.Data.Aggregate.PKG
3-
3+
// this is a comment
44
UnitTest*.mac
55
TestCoverage.Manager.cls

0 commit comments

Comments
 (0)