< Summary

Class:SharpHoundRPC.Handles.LSAPointer
Assembly:SharpHoundRPC
File(s):D:\a\SharpHoundCommon\SharpHoundCommon\src\SharpHoundRPC\Handles\LSAPointer.cs
Covered lines:0
Uncovered lines:13
Coverable lines:13
Total lines:26
Line coverage:0% (0 of 13)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

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

File(s)

D:\a\SharpHoundCommon\SharpHoundCommon\src\SharpHoundRPC\Handles\LSAPointer.cs

#LineLine coverage
 1using System;
 2using SharpHoundRPC.LSANative;
 3
 4namespace SharpHoundRPC.Handles
 5{
 6    public class LSAPointer : BasePointer
 7    {
 08        public LSAPointer() : base(true)
 09        {
 010        }
 11
 012        public LSAPointer(IntPtr handle) : base(handle, true)
 013        {
 014        }
 15
 016        public LSAPointer(IntPtr handle, bool ownsHandle) : base(handle, ownsHandle)
 017        {
 018        }
 19
 20        protected override bool ReleaseHandle()
 021        {
 022            if (handle == IntPtr.Zero) return true;
 023            return LSAMethods.LsaFreeMemory(handle) == NtStatus.StatusSuccess;
 024        }
 25    }
 26}