Closed hollanjs closed 1 year ago
Merging #1823 (cdcdaf0) into main (92612af) will decrease coverage by
0%
. The diff coverage isn/a
.
@@ Coverage Diff @@
## main #1823 +/- ##
====================================
- Coverage 91% 91% -1%
====================================
Files 82 81 -1
Lines 7433 7429 -4
====================================
- Hits 6781 6777 -4
Misses 652 652
Flag | Coverage Ξ | |
---|---|---|
unit | 91% <ΓΈ> (-1%) |
:arrow_down: |
@johlju - I think the checks are only failing because Test-IsNumericType has not been merged into DscResource.Common:main yet. That merge is queued up and ready for review as well: DscResource.Common PR #88
If it does need any additional updates, please let me know!
I will release DscResource.Common momentarily, then I re-run the pipeline on this PR.
/azp run
Good catch removing the private functions from the previous PR's change log entries in the Unreleased section - I would have totally forgot that π
There seems to be a bug in other parts of the module that fails the tests, that should be unrelated to this change. I can dig into it tomorrow.
@johlju let me know if there's anything else I can do on my end.
I don't know how the test passed before. But good thing this bug was caught now. π
The problem was on this line:
This line calls Test-IsNumericType
to determine if the value is numeric. If the value is an array then Test-IsNumericType
would wrongly return $false
for each value, so intead of returning a single $false
for arrays it would return an array of $false
or $true
(one for each item), making the above line always evaluate to $true
for arrays.
I proposed a fix in https://github.com/dsccommunity/DscResource.Common/pull/90.
/azp run
@hollanjs thank you for this! π
Pull Request (PR) description
Moved
Test-IsNumericType
from a private function in SqlServerDsc to a public function in DscResource.Common Related Issue adding function to DscResource.Common: Issue #87This Pull Request (PR) fixes the following issues
Task list
This change isβ