< 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@9d3a582b2d63930269564a7591aa77ef297cadeb
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 34
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

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    $passVerbose = $PSCmdlet.MyInvocation.BoundParameters['Verbose']
 121    $codeAnalysisassemblyLoadPath = Join-Path -Path $ModuleRootPath -ChildPath 'lib' -AdditionalChildPath 'Microsoft.Cod
 122    return(
 323        (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
 226        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 27        #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
 231        (Assert-KrAssemblyLoaded -AssemblyPath (Join-Path -Path "$codeAnalysisassemblyLoadPath" -ChildPath 'Microsoft.Co
 32    )
 33}
 34

Methods/Properties

Add-KrCodeAnalysisType()