< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 26
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%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/DebugMetadataHeader.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
 4using System.Collections.Immutable;
 5
 6namespace System.Reflection.Metadata
 7{
 8    public sealed class DebugMetadataHeader
 9    {
 010        public ImmutableArray<byte> Id { get; }
 011        public MethodDefinitionHandle EntryPoint { get; }
 12
 13        /// <summary>
 14        /// Gets the offset (in bytes) from the start of the metadata blob to the start of the <see cref="Id"/> blob.
 15        /// </summary>
 016        public int IdStartOffset { get; }
 17
 018        internal DebugMetadataHeader(ImmutableArray<byte> id, MethodDefinitionHandle entryPoint, int idStartOffset)
 019        {
 020            Id = id;
 021            EntryPoint = entryPoint;
 022            IdStartOffset = idStartOffset;
 023        }
 24    }
 25}
 26