From efd3c4c7d0c12af213b7ca0a65c490f38f0f75c6 Mon Sep 17 00:00:00 2001 From: Benjamin Fuchs Date: Mon, 13 Jan 2025 00:23:53 +0100 Subject: [PATCH] Updating tests --- tst/functions/Coverage.Tests.ps1 | 219 ++++++++++++++++++++----------- 1 file changed, 142 insertions(+), 77 deletions(-) diff --git a/tst/functions/Coverage.Tests.ps1 b/tst/functions/Coverage.Tests.ps1 index d801f4463..378b876ae 100644 --- a/tst/functions/Coverage.Tests.ps1 +++ b/tst/functions/Coverage.Tests.ps1 @@ -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 { + - - - - + + + - + - + - + - + - + - - + + - - + + + - - - - - - - - + + + + + + + + + + - - -