< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 31
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/PortableExecutable/DebugDirectory/PdbChecksumDebugDirectoryData.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;
 5using System.Diagnostics;
 6
 7namespace System.Reflection.PortableExecutable
 8{
 9    public readonly struct PdbChecksumDebugDirectoryData
 10    {
 11        /// <summary>
 12        /// Checksum algorithm name.
 13        /// </summary>
 014        public string AlgorithmName { get; }
 15
 16        /// <summary>
 17        /// GUID (Globally Unique Identifier) of the associated PDB.
 18        /// </summary>
 019        public ImmutableArray<byte> Checksum { get; }
 20
 21        internal PdbChecksumDebugDirectoryData(string algorithmName, ImmutableArray<byte> checksum)
 022        {
 023            Debug.Assert(!string.IsNullOrEmpty(algorithmName));
 024            Debug.Assert(!checksum.IsDefaultOrEmpty);
 25
 026            AlgorithmName = algorithmName;
 027            Checksum = checksum;
 028        }
 29    }
 30}
 31