Extends code coverage to include break, continue, exit and throw statements.
return is not included due to inconsistent behavior (though return 123 is already covered as a command expression)
Adds sort after Group-Object to save future headaches with inconsistent report/output order in Windows PowerShell vs PowerShell 6.1 which sorts by default.
Fix #1465
PR Checklist
[x] PR has meaningful title
[x] Summary describes changes
[x] PR is ready to be merged
If not, use the arrow next to Create Pull Request to mark it as a draft. PR can be marked Ready for review when it's ready.
PR Summary
Extends code coverage to include
break
,continue
,exit
andthrow
statements.return
is not included due to inconsistent behavior (thoughreturn 123
is already covered as a command expression)Adds sort after
Group-Object
to save future headaches with inconsistent report/output order in Windows PowerShell vs PowerShell 6.1 which sorts by default.Fix #1465
PR Checklist
Create Pull Request
to mark it as a draft. PR can be markedReady for review
when it's ready.