src/Cmdlets/New-FunctionCoverage.psm1
|
using namespace System.Diagnostics.CodeAnalysis using module ../FunctionCoverage.psm1 using module ../FunctionData.psm1 <# .SYNOPSIS Creates a new function coverage. .OUTPUTS The newly created function coverage. #> function New-FunctionCoverage { [CmdletBinding()] [OutputType([FunctionCoverage])] [SuppressMessage("PSUseOutputTypeCorrectly", "")] param ( # The coverage data. [ValidateNotNull()] [FunctionData[]] $Data = @(), # The number of functions found. [ValidateRange("NonNegative")] [int] $Found, # The number of functions hit. [ValidateRange("NonNegative")] [int] $Hit ) [FunctionCoverage]@{ Data = $Data Found = $Found Hit = $Hit } } |