< Summary - Kestrun — Combined Coverage

Information
Class: Private.Routing._KrMerge-Args
Assembly: Kestrun.PowerShell.Private
File(s): /home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Private/Routing/_KrMerge-Args.ps1
Tag: Kestrun/Kestrun@5f1d2b981c9d7292c11fd448428c6ab6c811c5de
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 25
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 11/19/2025 - 17:40:50 Line coverage: 0% (0/6) Total lines: 25 Tag: Kestrun/Kestrun@fcf33342333cef0516fe0d0912a86709874fd026

Metrics

File(s)

/home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Private/Routing/_KrMerge-Args.ps1

#LineLine coverage
 1<#
 2    .SYNOPSIS
 3        Merges two hashtables.
 4    .DESCRIPTION
 5        This function takes two hashtables and merges them into a single hashtable.
 6        If a key exists in both hashtables, the value from the second hashtable will be used.
 7    .PARAMETER a
 8        The first hashtable to merge.
 9    .PARAMETER b
 10        The second hashtable to merge.
 11    .OUTPUTS
 12        Hashtable
 13#>
 14function _KrMerge-Args {
 15    [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseApprovedVerbs', '')]
 16    [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseSingularNouns', '')]
 17    param([hashtable]$a, [hashtable]$b)
 18
 019    if (-not $a) { return $b }
 020    if (-not $b) { return $a }
 021    $m = @{}
 022    foreach ($k in $a.Keys) { $m[$k] = $a[$k] }
 023    foreach ($k in $b.Keys) { $m[$k] = $b[$k] } # child overrides
 024    $m
 25}

Methods/Properties

_KrMerge-Args()