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

DomCR / ACadSharp / 22305305154

23 Feb 2026 12:03PM UTC coverage: 77.082% (-0.2%) from 77.315%
22305305154

Pull #982

github

web-flow
Merge 342325222 into e5434eb50
Pull Request #982: Refactor Field, FieldList, and CadValue handling

8177 of 11488 branches covered (71.18%)

Branch coverage included in aggregate %.

3037 of 3710 new or added lines in 11 files covered. (81.86%)

47 existing lines in 3 files now uncovered.

29586 of 37503 relevant lines covered (78.89%)

150261.28 hits per line

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

53.33
/src/ACadSharp/Objects/FieldList.cs
1
using ACadSharp.Attributes;
2
using System.Collections.Generic;
3

4
namespace ACadSharp.Objects;
5

6
/// <summary>
7
/// Represents a <see cref="FieldList"/> object.
8
/// </summary>
9
/// <remarks>
10
/// Object name <see cref="DxfFileToken.ObjectFieldList"/> <br/>
11
/// Dxf class name <see cref="DxfSubclassMarker.FieldList"/>
12
/// </remarks>
13
[DxfName(DxfFileToken.ObjectFieldList)]
14
[DxfSubClass(DxfSubclassMarker.FieldList)]
15
public class FieldList : NonGraphicalObject
16
{
17
        /// <summary>
18
        /// Gets the collection of fields associated with this instance.
19
        /// </summary>
20
        /// <remarks>The returned collection is read-only from outside the class. To modify the fields, use the provided
21
        /// methods of the containing class, if available.</remarks>
22
        public List<Field> Fields { get; private set; } = new();
3✔
23

24
        /// <inheritdoc/>
25
        public override string ObjectName => DxfFileToken.ObjectFieldList;
×
26

27
        /// <inheritdoc/>
NEW
28
        public override ObjectType ObjectType { get { return ObjectType.UNLISTED; } }
×
29

30
        /// <inheritdoc/>
31
        public override string SubclassMarker => DxfSubclassMarker.FieldList;
×
32

33
        /// <inheritdoc/>
34
        public override CadObject Clone()
35
        {
1✔
36
                FieldList clone = base.Clone() as FieldList;
1✔
37

38
                clone.Fields = new List<Field>();
1✔
39
                foreach (Field f in this.Fields)
3!
NEW
40
                {
×
NEW
41
                        clone.Fields.Add(f);
×
NEW
42
                }
×
43

44
                return clone;
1✔
45
        }
1✔
46
}
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