Skip to content

Commit ae89fe1

Browse files
author
Kapil Borle
committed
Add Get-Count method to test helper module
1 parent 78c848e commit ae89fe1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Tests/PSScriptAnalyzerTestHelper.psm1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@ Function Test-PSEditionCoreCLRLinux
3838
(Test-PSEditionCoreCLR) -and $IsLinux
3939
}
4040

41+
Function Get-Count
42+
{
43+
Begin {$count = 0}
44+
Process {$count++}
45+
End {$count}
46+
}
47+
4148
Export-ModuleMember -Function Get-ExtentText
4249
Export-ModuleMember -Function Test-CorrectionExtent
4350
Export-ModuleMember -Function Test-PSEditionCoreCLR
44-
Export-ModuleMember -Function Test-PSEditionCoreCLRLinux
51+
Export-ModuleMember -Function Test-PSEditionCoreCLRLinux
52+
Export-ModuleMember -Function Get-Count

0 commit comments

Comments
 (0)