New-FunctionHealthRecord
SYNOPSIS
Creates a new custom object and gives it the TypeName : 'PSCodeHealth.Function.HealthRecord'.
SYNTAX
New-FunctionHealthRecord [-FunctionDefinition] <FunctionDefinitionAst> [-FunctionTestCoverage] <PSObject>
[<CommonParameters>]
DESCRIPTION
Creates a new custom object and gives it the TypeName : 'PSCodeHealth.Function.HealthRecord'.
EXAMPLES
EXAMPLE 1
New-FunctionHealthRecord -FunctionDefinition $MyFunctionAst -FunctionTestCoverage $TestCoverage
Returns new custom object of the type PSCodeHealth.Function.HealthRecord.
PARAMETERS
-FunctionDefinition
To specify the function definition.
Type: FunctionDefinitionAst
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-FunctionTestCoverage
To specify the percentage of lines of code in the specified function that are tested by unit tests.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).