< Summary

Class:SharpHoundCommonLib.OutputTypes.NamedPrincipal
Assembly:SharpHoundCommonLib
File(s):D:\a\SharpHoundCommon\SharpHoundCommon\src\CommonLib\OutputTypes\NamedPrincipal.cs
Covered lines:5
Uncovered lines:8
Coverable lines:13
Total lines:23
Line coverage:38.4% (5 of 13)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%10100%
.ctor(...)100%100%
ToString()100%100%

File(s)

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

#LineLine coverage
 1namespace SharpHoundCommonLib.OutputTypes
 2{
 3    public class NamedPrincipal
 4    {
 95        public NamedPrincipal()
 96        {
 97        }
 8
 09        public NamedPrincipal(string principalName, string objectId)
 010        {
 011            PrincipalName = principalName;
 012            ObjectId = objectId;
 013        }
 14
 1615        public string PrincipalName { get; set; }
 1616        public string ObjectId { get; set; }
 17
 18        public override string ToString()
 019        {
 020            return $"{PrincipalName} - {ObjectId}";
 021        }
 22    }
 23}