API Reference
Command
Add-BenchmarkCaseSource
Adds benchmark cases from a script block or evaluated objects.
Remarks
Adds benchmark cases from a script block or evaluated objects.
Examples
EXAMPLE 1
Add-BenchmarkCaseSource -InputObject @('Value')
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Add-BenchmarkCaseSource -InputObject <Object[]> [<CommonParameters>]#Parameter set:
InputObjectParameters
- InputObject Object[]
- Already evaluated case objects.
Add-BenchmarkCaseSource -ScriptBlock <ScriptBlock> [<CommonParameters>]#Parameter set:
ScriptBlockParameters
- ScriptBlock ScriptBlock
- Script block that emits case objects.