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

DomCR / ACadSharp / 29143042407

11 Jul 2026 06:34AM UTC coverage: 2.912% (-73.0%) from 75.918%
29143042407

push

github

web-flow
Merge pull request #1146 from ilCosmico/acds-read-payload-anchor

Read the AcDs payload area offset from the data segment header

264 of 12999 branches covered (2.03%)

Branch coverage included in aggregate %.

0 of 30 new or added lines in 1 file covered. (0.0%)

31243 existing lines in 465 files now uncovered.

1337 of 41984 relevant lines covered (3.18%)

5.38 hits per line

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

0.0
/src/ACadSharp/DxfMapBase.cs
1
using ACadSharp.Attributes;
2
using System;
3
using System.Collections.Generic;
4
using System.Reflection;
5

6
namespace ACadSharp
7
{
8
        public abstract class DxfMapBase
9
        {
10
                /// <summary>
11
                /// Name of the subclass map
12
                /// </summary>
UNCOV
13
                public string Name { get; set; }
×
14

15
                /// <summary>
16
                /// Properties linked to a dxf code
17
                /// </summary>
UNCOV
18
                public Dictionary<int, DxfProperty> DxfProperties { get; } = new Dictionary<int, DxfProperty>();
×
19

20
                protected static void addClassProperties(DxfMapBase map, Type type, CadObject obj = null)
UNCOV
21
                {
×
UNCOV
22
                        foreach (var item in cadObjectMapDxf(type))
×
UNCOV
23
                        {
×
UNCOV
24
                                map.DxfProperties.Add(item.Key, item.Value);
×
UNCOV
25
                                if (obj != null)
×
UNCOV
26
                                {
×
UNCOV
27
                                        item.Value.StoredValue = item.Value.GetRawValue(obj);
×
UNCOV
28
                                }
×
UNCOV
29
                        }
×
UNCOV
30
                }
×
31

32
                protected static IEnumerable<KeyValuePair<int, DxfProperty>> cadObjectMapDxf(Type type)
UNCOV
33
                {
×
UNCOV
34
                        foreach (PropertyInfo p in type.GetProperties(BindingFlags.Public
×
UNCOV
35
                                                                                                                | BindingFlags.Instance
×
UNCOV
36
                                                                                                                | BindingFlags.DeclaredOnly))
×
UNCOV
37
                        {
×
UNCOV
38
                                DxfCodeValueAttribute att = p.GetCustomAttribute<DxfCodeValueAttribute>();
×
UNCOV
39
                                if (att == null)
×
UNCOV
40
                                {
×
UNCOV
41
                                        continue;
×
42
                                }
43

UNCOV
44
                                foreach (var item in att.ValueCodes)
×
UNCOV
45
                                {
×
UNCOV
46
                                        yield return new KeyValuePair<int, DxfProperty>((int)item, new DxfProperty((int)item, p));
×
UNCOV
47
                                }
×
UNCOV
48
                        }
×
UNCOV
49
                }
×
50
        }
51
}
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

© 2026 Coveralls, Inc