< 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%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/TypeSystem/MethodImport.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.Metadata
 5{
 6    public readonly struct MethodImport
 7    {
 8        private readonly MethodImportAttributes _attributes;
 9        private readonly StringHandle _name;
 10        private readonly ModuleReferenceHandle _module;
 11
 12        internal MethodImport(MethodImportAttributes attributes, StringHandle name, ModuleReferenceHandle module)
 013        {
 014            _attributes = attributes;
 015            _name = name;
 016            _module = module;
 017        }
 18
 019        public MethodImportAttributes Attributes { get { return _attributes; } }
 020        public StringHandle Name { get { return _name; } }
 021        public ModuleReferenceHandle Module { get { return _module; } }
 22    }
 23}
 24