• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp / 16520510906

25 Jul 2025 11:07AM UTC coverage: 75.22% (+0.04%) from 75.178%
16520510906

push

github

web-flow
Merge pull request #721 from DomCR/svg-units

SVG paper units

6062 of 8858 branches covered (68.44%)

Branch coverage included in aggregate %.

98 of 113 new or added lines in 6 files covered. (86.73%)

5 existing lines in 1 file now uncovered.

24023 of 31138 relevant lines covered (77.15%)

78683.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

70.0
/src/ACadSharp/Extensions/UnitExtensions.cs
1
using ACadSharp.Objects;
2
using ACadSharp.Types.Units;
3

4
namespace ACadSharp.Extensions
5
{
6
        public static class UnitExtensions
7
        {
8
                public static UnitsType ToUnits(this PlotPaperUnits units)
9
                {
5✔
10
                        switch (units)
5!
11
                        {
12
                                case PlotPaperUnits.Inches:
13
                                        return UnitsType.Inches;
1✔
14
                                case PlotPaperUnits.Millimeters:
15
                                        return UnitsType.Millimeters;
4✔
16
                                case PlotPaperUnits.Pixels:
17
                                default:
NEW
18
                                        return UnitsType.Unitless;
×
19
                        }
20
                }
5✔
21
        }
22
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc