• 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/Objects/XRecord.Entry.cs
1
namespace ACadSharp.Objects
2
{
3
        public partial class XRecord
4
        {
5
                public class Entry
6
                {
UNCOV
7
                        public int Code { get; }
×
8

UNCOV
9
                        public object Value { get; set; }
×
10

11
                        public GroupCodeValueType GroupCode
12
                        {
13
                                get
UNCOV
14
                                {
×
UNCOV
15
                                        return GroupCodeValue.TransformValue(this.Code);
×
UNCOV
16
                                }
×
17
                        }
18

19
                        public bool HasLinkedObject
20
                        {
21
                                get
UNCOV
22
                                {
×
UNCOV
23
                                        switch (this.GroupCode)
×
24
                                        {
25
                                                case GroupCodeValueType.Handle:
26
                                                case GroupCodeValueType.ObjectId:
27
                                                case GroupCodeValueType.ExtendedDataHandle:
UNCOV
28
                                                        return true;
×
29
                                                default:
30
                                                        return false;
×
31
                                        }
UNCOV
32
                                }
×
33
                        }
34

UNCOV
35
                        public XRecord Owner { get; set; }
×
36

UNCOV
37
                        internal Entry(int code, object value, XRecord owner)
×
UNCOV
38
                        {
×
UNCOV
39
                                this.Code = code;
×
UNCOV
40
                                this.Value = value;
×
UNCOV
41
                                this.Owner = owner;
×
UNCOV
42
                        }
×
43

44
                        public CadObject GetReference()
UNCOV
45
                        {
×
UNCOV
46
                                if (!this.HasLinkedObject)
×
47
                                        return null;
×
48

UNCOV
49
                                if (this.Value is CadObject cadObject)
×
UNCOV
50
                                {
×
UNCOV
51
                                        if(cadObject.Document != this.Owner.Document)
×
52
                                        {
×
53
                                                return null;
×
54
                                        }
55

UNCOV
56
                                        return cadObject;
×
57
                                }
58
                                else
59
                                {
×
60
                                        return null;
×
61
                                }
UNCOV
62
                        }
×
63

64
                        /// <inheritdoc/>
65
                        public override string ToString()
66
                        {
×
67
                                return $"{Code}:{Value}";
×
68
                        }
×
69
                }
70
        }
71
}
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