< 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@2d87023b37eb91155071c91dd3d6a2eeb3004705
Line coverage
0%
Covered lines: 0
Uncovered lines: 11
Coverable lines: 11
Total lines: 34
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 08/26/2025 - 01:25:22 Line coverage: 100% (11/11) Total lines: 33 Tag: Kestrun/Kestrun@07f821172e5dc3657f1be7e6818f18d6721cf38a09/04/2025 - 18:11:31 Line coverage: 100% (11/11) Total lines: 34 Tag: Kestrun/Kestrun@de99e24698289f3f61ac7b73e96092732ae12b0510/13/2025 - 16:52:37 Line coverage: 0% (0/11) Total lines: 34 Tag: Kestrun/Kestrun@10d476bee71c71ad215bb8ab59f219887b5b4a5e

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    )
 020    $passVerbose = $PSCmdlet.MyInvocation.BoundParameters['Verbose']
 021    $codeAnalysisassemblyLoadPath = Join-Path -Path $ModuleRootPath -ChildPath 'lib' -AdditionalChildPath 'Microsoft.Cod
 022    return(
 023        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 024        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 025        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 026        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 27        #Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath "Microsoft.Co
 028        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 029        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 030        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 031        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 32    )
 33}
 34

Methods/Properties

Add-KrCodeAnalysisType()