< Summary

Class:SharpHoundCommonLib.ResolvedSearchResult
Assembly:SharpHoundCommonLib
File(s):D:\a\SharpHoundCommon\SharpHoundCommon\src\CommonLib\ResolvedSearchResult.cs
Covered lines:9
Uncovered lines:3
Coverable lines:12
Total lines:35
Line coverage:75% (9 of 12)
Covered branches:1
Total branches:2
Branch coverage:50% (1 of 2)

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
ToString()100%100%

File(s)

D:\a\SharpHoundCommon\SharpHoundCommon\src\CommonLib\ResolvedSearchResult.cs

#LineLine coverage
 1using SharpHoundCommonLib.Enums;
 2
 3namespace SharpHoundCommonLib
 4{
 5    public class ResolvedSearchResult
 6    {
 7        private string _displayName;
 8        private string _objectID;
 9
 10        public string DisplayName
 11        {
 1212            get => _displayName?.ToUpper();
 1213            set => _displayName = value;
 14        }
 15
 1216        public Label ObjectType { get; set; }
 17
 18        public string ObjectId
 19        {
 720            get => _objectID;
 721            set => _objectID = value.ToUpper();
 22        }
 23
 824        public bool Deleted { get; set; }
 25
 1226        public string Domain { get; set; }
 1227        public string DomainSid { get; set; }
 1028        public bool IsDomainController { get; set; }
 29
 30        public override string ToString()
 031        {
 032            return $"{DisplayName} - {ObjectType}";
 033        }
 34    }
 35}