< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 24
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

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

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/DirectoryEntry.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4namespace System.Reflection.PortableExecutable
 5{
 6    public readonly struct DirectoryEntry
 7    {
 8        public readonly int RelativeVirtualAddress;
 9        public readonly int Size;
 10
 11        public DirectoryEntry(int relativeVirtualAddress, int size)
 012        {
 013            RelativeVirtualAddress = relativeVirtualAddress;
 014            Size = size;
 015        }
 16
 17        internal DirectoryEntry(ref PEBinaryReader reader)
 018        {
 019            RelativeVirtualAddress = reader.ReadInt32();
 020            Size = reader.ReadInt32();
 021        }
 22    }
 23}
 24