module/internal/test-parameter-input-object.psm1

#Requires -PSEdition Core -Version 7.2
<#
.SYNOPSIS
GitHub Actions - Internal - Test Parameter Input Object
.DESCRIPTION
Test the parameter input object whether is valid.
.PARAMETER InputObject
Parameter input object that need to test.
.OUTPUTS
[Boolean] Test result.
#>

Function Test-ParameterInputObject {
    [CmdletBinding()]
    [OutputType([Boolean])]
    Param (
        [Parameter(Mandatory = $True, Position = 0, ValueFromPipeline = $True)][Alias('Input', 'Object')]$InputObject
    )
    Process {
        (
            $InputObject -is [Hashtable] -or
            $InputObject -is [Object[]] -or
            $InputObject -is [System.Collections.Specialized.OrderedDictionary]
        ) |
            Write-Output
    }
}
Export-ModuleMember -Function @(
    'Test-ParameterInputObject'
)