< Summary - Kestrun — Combined Coverage

Information
Class: Public.Form.Get-KrFormPartRule
Assembly: Kestrun.PowerShell.Public
File(s): /home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/Form/Get-KrFormPartRule.ps1
Tag: Kestrun/Kestrun@d9261bd752e45afa789d10bc0c82b7d5724d9589
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 28
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 02/05/2026 - 00:28:18 Line coverage: 0% (0/2) Total lines: 28 Tag: Kestrun/Kestrun@d9261bd752e45afa789d10bc0c82b7d5724d9589

Metrics

File(s)

/home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/Form/Get-KrFormPartRule.ps1

#LineLine coverage
 1<#
 2.SYNOPSIS
 3    Retrieves a form part rule from the Kestrun server.
 4.DESCRIPTION
 5    The Get-KrFormPartRule function retrieves a Kestrun form part rule by its name from the server's form part rules col
 6.PARAMETER Name
 7    The name of the form part rule to retrieve.
 8.OUTPUTS
 9    Kestrun.Forms.KrFormPartRule
 10.EXAMPLE
 11    $formPartRule = Get-KrFormPartRule -Name 'MyFormPartRule'
 12    This example retrieves the form part rule named 'MyFormPartRule' from the Kestrun server.
 13.NOTES
 14    This function is part of the Kestrun.Forms module and is used to define form options.
 15#>
 16function Get-KrFormPartRule {
 17    [KestrunRuntimeApi('Definition')]
 18    [CmdletBinding()]
 19    [OutputType([Kestrun.Forms.KrFormPartRule])]
 20    param(
 21        [Parameter(Mandatory = $true)]
 22        [string] $Name
 23    )
 024    $Server = Resolve-KestrunServer
 25
 26    # Return the form part rule by name or null if not found
 027    return $Server.GetFormPartRule($Name)
 28}

Methods/Properties

Get-KrFormPartRule()