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

DomCR / ACadSharp / 30556126935

30 Jul 2026 03:19PM UTC coverage: 76.839% (+1.0%) from 75.805%
30556126935

Pull #1151

github

web-flow
Merge 7f2b563d8 into 219e5fc4a
Pull Request #1151: Dynamic parameters

9787 of 13734 branches covered (71.26%)

Branch coverage included in aggregate %.

2988 of 3445 new or added lines in 70 files covered. (86.73%)

74 existing lines in 12 files now uncovered.

34836 of 44339 relevant lines covered (78.57%)

142210.9 hits per line

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

65.85
/src/ACadSharp/Objects/Evaluations/EvaluationGraph.GraphNode.cs
1
using ACadSharp.Attributes;
2

3
namespace ACadSharp.Objects.Evaluations;
4

5
public partial class EvaluationGraph
6
{
7
        /// <summary>
8
        /// Represents a graph node of a <see cref="EvaluationGraph"/>.
9
        /// </summary>
10
        public class Node
11
        {
12
                /// <summary>
13
                /// Unknown
14
                /// </summary>
15
                [DxfCodeValue(92)]
16
                public int Data1 { get; internal set; }
4,912✔
17

18
                /// <summary>
19
                /// Unknown
20
                /// </summary>
21
                [DxfCodeValue(92)]
22
                public int Data2 { get; internal set; }
4,912✔
23

24
                /// <summary>
25
                /// Unknown
26
                /// </summary>
27
                [DxfCodeValue(92)]
28
                public int Data3 { get; internal set; }
4,912✔
29

30
                /// <summary>
31
                /// Unknown
32
                /// </summary>
33
                [DxfCodeValue(92)]
34
                public int Data4 { get; internal set; }
4,912✔
35

36
                /// <summary>
37
                /// Gets a <see cref="EvaluationExpression"/> associated with this <see cref="Node"/>.
38
                /// </summary>
39
                [DxfCodeValue(360)]
40
                public EvaluationExpression Expression
41
                {
42
                        get
43
                        {
5,367✔
44
                                return this._expression;
5,367✔
45
                        }
5,367✔
46
                        set
47
                        {
4,328✔
48
                                if (value != null)
4,328✔
49
                                {
4,328✔
50
                                        this._evaluationGraph.Document?.AddCadObject(value);
4,328!
51
                                }
4,328✔
52

53
                                if (this._expression != null)
4,328!
NEW
54
                                {
×
NEW
55
                                        this._evaluationGraph.Document?.RemoveCadObject(this._expression);
×
NEW
56
                                }
×
57

58
                                this._expression = value;
4,328✔
59
                                this._expression.Owner = this._evaluationGraph;
4,328✔
60
                        }
4,328✔
61
                }
62

63
                /// <summary>
64
                /// Gets or sets the flags of this <see cref="Node"/>.
65
                /// </summary>
66
                [DxfCodeValue(93)]
67
                public NodeFlags Flags { get; set; }
4,912✔
68

69
                /// <summary>
70
                /// Gets or sets the index of the next <see cref="Node"/> in the list of
71
                /// graph nodes in the owning <see cref="EvaluationGraph"/>.
72
                /// </summary>
73
                [DxfCodeValue(95)]
74
                public int Id { get; set; }
4,912✔
75

76
                /// <summary>
77
                /// Gets or sets the index of this <see cref="Node"/> in the list of
78
                /// graph nodes in the owning <see cref="EvaluationGraph"/>.
79
                /// </summary>
80
                [DxfCodeValue(91)]
81
                public int Index { get; set; }
4,584✔
82

83
                private EvaluationExpression _expression;
84

85
                private EvaluationGraph _evaluationGraph;
86

87
                public Node(EvaluationGraph evaluationGraph)
4,584✔
88
                {
4,584✔
89
                        this._evaluationGraph = evaluationGraph;
4,584✔
90
                }
4,584✔
91

92
                /// <summary>
93
                /// Creates a deep copy of this <see cref="Node"/>.
94
                /// </summary>
95
                /// <returns>A deep copy of this <see cref="Node"/>.</returns>
96
                public Node Clone()
NEW
97
                {
×
NEW
98
                        Node clone = (Node)this.MemberwiseClone();
×
99

NEW
100
                        clone.Expression = (EvaluationExpression)this.Expression?.Clone();
×
101

NEW
102
                        return clone;
×
NEW
103
                }
×
104
        }
105
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc