diff --git a/tst/functions/Coverage.Tests.ps1 b/tst/functions/Coverage.Tests.ps1 index d801f4463..12d356fb2 100644 --- a/tst/functions/Coverage.Tests.ps1 +++ b/tst/functions/Coverage.Tests.ps1 @@ -1,4 +1,4 @@ -Set-StrictMode -Version Latest +Set-StrictMode -Version Latest InPesterModuleScope { Describe 'Code Coverage Analysis' { @@ -23,8 +23,6 @@ InPesterModuleScope { $null = New-Item -Path $testScriptPath -ItemType File -ErrorAction SilentlyContinue Set-Content -Path $testScriptPath -Value @' - using namespace System.Diagnostics.CodeAnalysis - function FunctionOne { function NestedFunction @@ -49,14 +47,6 @@ InPesterModuleScope { 'I am function two. I never get called.' } - function FunctionThree - { - [ExcludeFromCodeCoverageAttribute(Justification = 'I am not covered')] - param () - - 'I am function three. I never get called.' - } - FunctionOne '@ @@ -298,42 +288,42 @@ InPesterModuleScope { - + - + - + - + - + - + - + - + @@ -377,21 +367,21 @@ InPesterModuleScope { - - + + + - - - - - - - - + + + + + + + + + + - - - @@ -490,42 +480,42 @@ InPesterModuleScope { - + - + - + - + - + - + - + - + @@ -569,21 +559,21 @@ InPesterModuleScope { - - + + + - - - - - - - - + + + + + + + + + + - - - @@ -685,61 +675,61 @@ InPesterModuleScope { + - - - - + + + - + - + - + - + - + - - + + - - + + + - - - - - - - - + + + + + + + + + + - - -