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

DomCR / ACadSharp / 12619114630

05 Jan 2025 11:27AM UTC coverage: 75.645% (+0.6%) from 75.001%
12619114630

Pull #490

github

web-flow
Merge 01b5ca4aa into 0d0db0394
Pull Request #490: Issue 474 header defaults

5217 of 7612 branches covered (68.54%)

Branch coverage included in aggregate %.

129 of 157 new or added lines in 5 files covered. (82.17%)

581 existing lines in 13 files now uncovered.

20882 of 26890 relevant lines covered (77.66%)

39172.96 hits per line

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

60.0
/src/ACadSharp/XData/ExtendedDataCollection.cs
1
using ACadSharp.Tables;
2
using System;
3
using System.Collections.Generic;
4

5
namespace ACadSharp.XData
6
{
7
        public class ExtendedDataDictionary
8
        {
9
                public IEnumerable<KeyValuePair<AppId, ExtendedData>> Entries { get { return this._data; } }
7,056✔
10

UNCOV
11
                public CadObject Owner { get; }
×
12

13
                private Dictionary<AppId, ExtendedData> _data = new Dictionary<AppId, ExtendedData>();
665,620✔
14

15
                public ExtendedDataDictionary(CadObject owner)
665,620✔
16
                {
665,620✔
17
                        this.Owner = owner;
665,620✔
18
                }
665,620✔
19

20
                public void Add(AppId app)
21
                {
×
22
                        this._data.Add(app, new ExtendedData(app));
×
UNCOV
23
                }
×
24
                /// <summary>
25
                /// Add ExtendedData for a specific AppId to the Dictionary.
26
                /// </summary>
27
                /// <param name="app">The AppId object.</param>
28
                /// <param name="records">The ExtendedData records.</param>
29
                public void Add(AppId app, IEnumerable<ExtendedDataRecord> records)
30
                {
22,668✔
31
                        this._data.Add(app, new ExtendedData(app, records));
22,668✔
32
                }
22,668✔
33

34
                /// <summary>
35
                /// Get ExtendedData for a specific AppId from the Dictionary.
36
                /// </summary>
37
                /// <param name="app">The AppId object.</param>
38
                public ExtendedData Get(AppId app)
39
                {
6✔
40
                        return this._data[app];
6✔
41
                }
6✔
42

43
                /// <summary>
44
                /// Try to get ExtendedData for a specific AppId from the Dictionary.
45
                /// </summary>
46
                /// <param name="app">The AppId object.</param>
47
                /// <param name="value">ExtendedData object.</param>
48
                public bool TryGet(AppId app, out ExtendedData value)
UNCOV
49
                {
×
50
                        return this._data.TryGetValue(app, out value);
×
51
                }
×
52

53
                /// <summary>
54
                /// Check whether a AppId is given in the Dictionary.
55
                /// </summary>
56
                /// <param name="app">The AppId object.</param>
57
                public bool ContainsKey(AppId app)
UNCOV
58
                {
×
UNCOV
59
                        return this._data.ContainsKey(app);
×
UNCOV
60
                }
×
61

62
                /// <summary>
63
                /// Clear all Dictionary entries.
64
                /// </summary>
65
                public void Clear()
66
                {
7,977✔
67
                        this._data.Clear();
7,977✔
68
                }
7,977✔
69
        }
70
}
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

© 2025 Coveralls, Inc