< Summary

Information
Class: Dotnet.Installer.Core.Exceptions.NeedsSudoException
Assembly: Dotnet.Installer.Core
File(s): /home/runner/work/dotnet-snap/dotnet-snap/src/Dotnet.Installer.Core/Exceptions/NeedsSudoException.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 8
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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
get_Path()100%210%
get_Message()100%210%

File(s)

/home/runner/work/dotnet-snap/dotnet-snap/src/Dotnet.Installer.Core/Exceptions/NeedsSudoException.cs

#LineLine coverage
 1namespace Dotnet.Installer.Core.Exceptions;
 2
 03public class NeedsSudoException(string path) : ExceptionBase(Error.NeedsSudo)
 4{
 05    public string Path { get; } = path;
 6
 07    public override string Message => "Unauthorized access. Run with sudo?";
 8}