src/Cmdlets/New-LineCoverage.ps1
|
using module ../LineCoverage.psm1 using module ../LineData.psm1 <# .SYNOPSIS Creates a new line coverage. .OUTPUTS The newly created line coverage. #> function New-LcovLineCoverage { [CmdletBinding()] [OutputType([LineCoverage])] param ( # The coverage data. [ValidateNotNull()] [LineData[]] $Data = @(), # The number of lines found. [ValidateRange("NonNegative")] [int] $Found, # The number of lines hit. [ValidateRange("NonNegative")] [int] $Hit ) [LineCoverage]@{ Data = $Data Found = $Found Hit = $Hit } } |