< Summary

Class:SharpHoundCommonLib.OutputTypes.UserRightsAssignmentAPIResult
Assembly:SharpHoundCommonLib
File(s):D:\a\SharpHoundCommon\SharpHoundCommon\src\CommonLib\OutputTypes\UserRightsAssignmentAPIResult.cs
Covered lines:3
Uncovered lines:8
Coverable lines:11
Total lines:24
Line coverage:27.2% (3 of 11)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
ToString()0%400%

File(s)

D:\a\SharpHoundCommon\SharpHoundCommon\src\CommonLib\OutputTypes\UserRightsAssignmentAPIResult.cs

#LineLine coverage
 1using System;
 2using System.Text;
 3
 4namespace SharpHoundCommonLib.OutputTypes
 5{
 6    public class UserRightsAssignmentAPIResult : APIResult
 7    {
 58        public string Privilege { get; set; }
 109        public TypedPrincipal[] Results { get; set; } = Array.Empty<TypedPrincipal>();
 510        public NamedPrincipal[] LocalNames { get; set; } = Array.Empty<NamedPrincipal>();
 11
 12        public override string ToString()
 013        {
 014            var builder = new StringBuilder();
 015            builder.AppendLine($"Privilege {Privilege}");
 016            foreach (var x in Results) builder.AppendLine(x.ToString());
 17
 018            builder.AppendLine("Extra Names:");
 19
 020            foreach (var x in LocalNames) builder.AppendLine(x.ToString());
 021            return builder.ToString();
 022        }
 23    }
 24}