src/Cmdlets/New-FunctionCoverage.ps1
|
using module ../FunctionCoverage.psm1 using module ../FunctionData.psm1 <# .SYNOPSIS Creates a new function coverage. .OUTPUTS The newly created function coverage. #> function New-LcovFunctionCoverage { [CmdletBinding()] [OutputType([FunctionCoverage])] 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 } } |