< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 33
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
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/TypeLayout.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 TypeLayout
 7    {
 8        private readonly int _size;
 9        private readonly int _packingSize;
 10
 11        public TypeLayout(int size, int packingSize)
 012        {
 013            _size = size;
 014            _packingSize = packingSize;
 015        }
 16
 17        public int Size
 18        {
 019            get { return _size; }
 20        }
 21
 22        public int PackingSize
 23        {
 024            get { return _packingSize; }
 25        }
 26
 27        public bool IsDefault
 28        {
 029            get { return _size == 0 && _packingSize == 0; }
 30        }
 31    }
 32}
 33