-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xVirtualMemory: Refactor and improve unit test coverage and HQRM - Fixes #95 #96
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #96 +/- ##
=================================
+ Coverage 68% 78% +9%
=================================
Files 6 6
Lines 725 706 -19
=================================
+ Hits 499 552 +53
+ Misses 226 154 -72 |
I have some problems over at xSQLServer that I need to focus on. But will get to this as soon as those bugs are squashed. |
Awesome work as usual. Just minor things. Reviewed 4 of 4 files at r1. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 45 at r1 (raw file):
Change to DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 50 at r1 (raw file):
Maybe use DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 385 at r1 (raw file):
Missed comment-based help here. DSCResources/MSFT_xVirtualMemory/en-US/MSFT_xVirtualMemory.strings.psd1, line 7 at r1 (raw file):
This was a new word for me ;) Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 197 at r1 (raw file):
"Should not..." seems wrong here, it does return something. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 237 at r1 (raw file):
Same here Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 351 at r1 (raw file):
Wrong text here. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 428 at r1 (raw file):
Same here Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 504 at r1 (raw file):
Same here Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 576 at r1 (raw file):
Same here Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 639 at r1 (raw file):
Same here Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 696 at r1 (raw file):
Same here Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 734 at r1 (raw file):
When? Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 764 at r1 (raw file):
When? Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 1133 at r1 (raw file):
Add a test when it do return the correct object? Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 1141 at r1 (raw file):
Do you need this? Throughout Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 1206 at r1 (raw file):
unsure, but maybe "throw an exception"? Throughout Comments from Reviewable |
All fixed I think! Great review, thanks @johlju Review status: 1 of 4 files reviewed at latest revision, 17 unresolved discussions. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 45 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 50 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xVirtualMemory/MSFT_xVirtualMemory.psm1, line 385 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. DSCResources/MSFT_xVirtualMemory/en-US/MSFT_xVirtualMemory.strings.psd1, line 7 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Oops - good catch - not really sure how I ended up with that! Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 197 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 237 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 351 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 428 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 504 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 576 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 639 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 696 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 734 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 764 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 1133 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Oops. Is actually testing for the correct object. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 1141 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
No not needed - removed throughout. Tests/Unit/MSFT_xVirtualMemory.Tests.ps1, line 1206 at r1 (raw file): Previously, johlju (Johan Ljunggren) wrote…
Done. Comments from Reviewable |
Reviewed 3 of 3 files at r2. Comments from Reviewable |
Pull Request (PR) description
This PR refactors xVirtualMemory to:
This Pull Request (PR) fixes the following issues:
Fixes #95
Fixes #81
Task list:
@johlju - sorry about the size of this PR, but once I took a look at the existing code and unit tests, I found it wasn't going to be easy to get decent coverage without refactoring. The same with HQRM - the resource needed a lot of work to get it into decent shape.
This change is