< Summary

Class:SharpHoundCommonLib.OutputTypes.LocalGroupAPIResult
Assembly:SharpHoundCommonLib
File(s):D:\a\SharpHoundCommon\SharpHoundCommon\src\CommonLib\OutputTypes\LocalGroupAPIResult.cs
Covered lines:4
Uncovered lines:8
Coverable lines:12
Total lines:25
Line coverage:33.3% (4 of 12)
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\LocalGroupAPIResult.cs

#LineLine coverage
 1using System;
 2using System.Text;
 3
 4namespace SharpHoundCommonLib.OutputTypes
 5{
 6    public class LocalGroupAPIResult : APIResult
 7    {
 138        public string ObjectIdentifier { get; set; }
 59        public string Name { get; set; }
 1610        public TypedPrincipal[] Results { get; set; } = Array.Empty<TypedPrincipal>();
 1011        public NamedPrincipal[] LocalNames { get; set; } = Array.Empty<NamedPrincipal>();
 12
 13        public override string ToString()
 014        {
 015            var builder = new StringBuilder();
 016            builder.AppendLine($"Local group {Name} ({ObjectIdentifier})");
 017            foreach (var x in Results) builder.AppendLine(x.ToString());
 18
 019            builder.AppendLine("Extra Names:");
 20
 021            foreach (var x in LocalNames) builder.AppendLine(x.ToString());
 022            return builder.ToString();
 023        }
 24    }
 25}