< Summary - SonghayCore

Information
Class: Songhay.Extensions.AssemblyExtensions
Assembly: SonghayCore
File(s): /home/rasx/sourceRoot/SonghayCore/SonghayCore/Extensions/AssemblyExtensions.cs
Line coverage
50%
Covered lines: 1
Uncovered lines: 1
Coverable lines: 2
Total lines: 16
Line coverage: 50%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Method coverage is only available for sponsors.

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
GetPathFromAssembly(...)100%1100%
GetPathFromAssembly(...)100%10%

File(s)

/home/rasx/sourceRoot/SonghayCore/SonghayCore/Extensions/AssemblyExtensions.cs

#LineLine coverage
 1namespace Songhay.Extensions;
 2
 3/// <summary>Extensions of <see cref="Assembly"/>.</summary>
 4public static class AssemblyExtensions
 5{
 6    /// <summary>Gets the path from assembly.</summary>
 7    /// <param name="assembly">The assembly.</param>
 8    public static string? GetPathFromAssembly(this Assembly assembly) =>
 299        ProgramAssemblyUtility.GetPathFromAssembly(assembly);
 10
 11    /// <summary>Gets the path from assembly.</summary>
 12    /// <param name="assembly">The assembly.</param>
 13    /// <param name="fileSegment">The file segment.</param>
 14    public static string GetPathFromAssembly(this Assembly assembly, string fileSegment) =>
 015        ProgramAssemblyUtility.GetPathFromAssembly(assembly, fileSegment);
 16}