Skip to content

Commit

Permalink
Add OutputType to a few internal methods
Browse files Browse the repository at this point in the history
  • Loading branch information
fflaten committed Jun 30, 2024
1 parent 6fa54ed commit bb222fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Pester.Runtime.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ function Reset-PerContainerState {
}

function Find-Test {
[OutputType([Pester.Container])]
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
Expand Down Expand Up @@ -138,6 +139,7 @@ function Find-Test {
}

function ConvertTo-DiscoveredBlockContainer {
[OutputType([Pester.Container])]
param (
[Parameter(Mandatory = $true)]
$Block
Expand All @@ -148,6 +150,7 @@ function ConvertTo-DiscoveredBlockContainer {
}

function ConvertTo-ExecutedBlockContainer {
[OutputType([Pester.Container])]
param (
[Parameter(Mandatory = $true)]
$Block
Expand All @@ -156,8 +159,6 @@ function ConvertTo-ExecutedBlockContainer {
foreach ($b in $Block) {
[Pester.Container]::CreateFromBlock($b)
}


}

function New-ParametrizedBlock {
Expand Down Expand Up @@ -2479,6 +2480,7 @@ function Invoke-BlockContainer {
}

function New-BlockContainerObject {
[OutputType([Pester.ContainerInfo])]
[CmdletBinding()]
param (
[Parameter(Mandatory, ParameterSetName = 'ScriptBlock')]
Expand Down

0 comments on commit bb222fc

Please sign in to comment.