< Summary

Class:SharpHoundRPC.Wrappers.SAMAlias
Assembly:SharpHoundRPC
File(s):D:\a\SharpHoundCommon\SharpHoundCommon\src\SharpHoundRPC\Wrappers\SAMAlias.cs
Covered lines:0
Uncovered lines:12
Coverable lines:12
Total lines:30
Line coverage:0% (0 of 12)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%100%
GetMembers()0%200%

File(s)

D:\a\SharpHoundCommon\SharpHoundCommon\src\SharpHoundRPC\Wrappers\SAMAlias.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using System.Security.Principal;
 3using SharpHoundRPC.Handles;
 4using SharpHoundRPC.SAMRPCNative;
 5
 6namespace SharpHoundRPC.Wrappers
 7{
 8    public class SAMAlias : SAMBase, ISAMAlias
 9    {
 010        public SAMAlias(SAMHandle handle) : base(handle)
 011        {
 012        }
 13
 014        public string Name { get; set; }
 015        public int Rid { get; set; }
 16
 17        public Result<IEnumerable<SecurityIdentifier>> GetMembers()
 018        {
 019            var (status, members, count) = SAMMethods.SamGetMembersInAlias(Handle);
 20
 021            if (status.IsError())
 022            {
 023                return status;
 24            }
 25
 026            return Result<IEnumerable<SecurityIdentifier>>.Ok(members.GetData(count));
 27
 028        }
 29    }
 30}