< Summary - Kestrun — Combined Coverage

Information
Class: Private.Assembly.Add-KrCodeAnalysisType
Assembly: Kestrun.PowerShell.Private
File(s): /home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Private/Assembly/Add-KrCodeAnalysisType.ps1
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
100%
Covered lines: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 33
Line coverage: 100%
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 09/08/2025 - 20:34:03 Line coverage: 100% (11/11) Total lines: 34 Tag: Kestrun/Kestrun@3790ee5884494a7a2a829344a47743e0bf492e7210/13/2025 - 16:52:37 Line coverage: 0% (0/11) Total lines: 34 Tag: Kestrun/Kestrun@10d476bee71c71ad215bb8ab59f219887b5b4a5e12/21/2025 - 19:25:34 Line coverage: 0% (0/10) Total lines: 33 Tag: Kestrun/Kestrun@63eee3e6ff7662a7eb5bb3603d667daccb809f2d01/21/2026 - 17:07:46 Line coverage: 100% (10/10) Total lines: 33 Tag: Kestrun/Kestrun@3f6f61710c7ef7d5953cab578fe699c1e5e01a36

Metrics

File(s)

/home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Private/Assembly/Add-KrCodeAnalysisType.ps1

#LineLine coverage
 1<#
 2    .SYNOPSIS
 3        Adds the specified version of the Microsoft.CodeAnalysis assemblies to the session.
 4    .DESCRIPTION
 5        This function loads the specified version of the Microsoft.CodeAnalysis assemblies into the current session.
 6    .PARAMETER ModuleRootPath
 7        The root path of the module.
 8    .PARAMETER Version
 9        The version of the Microsoft.CodeAnalysis assemblies to load.
 10#>
 11function Add-KrCodeAnalysisType {
 12    [CmdletBinding()]
 13    [OutputType([bool])]
 14    param (
 15        [Parameter(Mandatory = $true)]
 16        [string]$ModuleRootPath,
 17        [Parameter(Mandatory = $true)]
 18        [string]$Version
 19    )
 120    $codeAnalysisassemblyLoadPath = Join-Path -Path $ModuleRootPath -ChildPath 'lib' -AdditionalChildPath 'Microsoft.Cod
 121    return(
 322        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 223        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 224        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 225        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 26        #Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath "Microsoft.Co
 227        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 228        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 229        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 230        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 31    )
 32}
 33

Methods/Properties

Add-KrCodeAnalysisType()