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

DomCR / ACadSharp / 17737836230

15 Sep 2025 03:12PM UTC coverage: 2.092% (-76.2%) from 78.245%
17737836230

push

github

web-flow
Merge pull request #790 from DomCR/addflag-refactor

addflag refactor

141 of 9225 branches covered (1.53%)

Branch coverage included in aggregate %.

0 of 93 new or added lines in 10 files covered. (0.0%)

24910 existing lines in 372 files now uncovered.

724 of 32119 relevant lines covered (2.25%)

5.76 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)
UNCOV
21
                {
×
UNCOV
22
                        foreach (var item in cadObjectMapDxf(type))
×
UNCOV
23
                        {
×
UNCOV
24
                                map.DxfProperties.Add(item.Key, item.Value);
×
UNCOV
25
                        }
×
UNCOV
26
                }
×
27

28
                protected static IEnumerable<KeyValuePair<int, DxfProperty>> cadObjectMapDxf(Type type)
UNCOV
29
                {
×
UNCOV
30
                        foreach (PropertyInfo p in type.GetProperties(BindingFlags.Public
×
UNCOV
31
                                                                                                                | BindingFlags.Instance
×
UNCOV
32
                                                                                                                | BindingFlags.DeclaredOnly))
×
UNCOV
33
                        {
×
UNCOV
34
                                DxfCodeValueAttribute att = p.GetCustomAttribute<DxfCodeValueAttribute>();
×
UNCOV
35
                                if (att == null)
×
UNCOV
36
                                        continue;
×
37

UNCOV
38
                                if (att.ReferenceType == DxfReferenceType.Count)
×
UNCOV
39
                                {
×
40

UNCOV
41
                                }
×
42

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