< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 15
Coverable lines: 15
Total lines: 34
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/Internal/NamespaceData.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.Ecma335
 7{
 8    internal sealed class NamespaceData
 9    {
 10        public readonly StringHandle Name;
 11        public readonly string FullName;
 12        public readonly NamespaceDefinitionHandle Parent;
 13        public readonly ImmutableArray<NamespaceDefinitionHandle> NamespaceDefinitions;
 14        public readonly ImmutableArray<TypeDefinitionHandle> TypeDefinitions;
 15        public readonly ImmutableArray<ExportedTypeHandle> ExportedTypes;
 16
 017        public NamespaceData(
 018            StringHandle name,
 019            string fullName,
 020            NamespaceDefinitionHandle parent,
 021            ImmutableArray<NamespaceDefinitionHandle> namespaceDefinitions,
 022            ImmutableArray<TypeDefinitionHandle> typeDefinitions,
 023            ImmutableArray<ExportedTypeHandle> exportedTypes)
 024        {
 025            this.Name = name;
 026            this.FullName = fullName;
 027            this.Parent = parent;
 028            this.NamespaceDefinitions = namespaceDefinitions;
 029            this.TypeDefinitions = typeDefinitions;
 030            this.ExportedTypes = exportedTypes;
 031        }
 32    }
 33}
 34