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

kysect / Configuin / 9124192443

17 May 2024 06:53AM UTC coverage: 81.494% (+0.9%) from 80.585%
9124192443

push

github

FrediKats
Hack for fixing tests EOL formatting

239 of 358 branches covered (66.76%)

Branch coverage included in aggregate %.

0 of 7 new or added lines in 1 file covered. (0.0%)

4 existing lines in 3 files now uncovered.

1769 of 2106 relevant lines covered (84.0%)

531.82 hits per line

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

92.31
/Sources/Kysect.Configuin.EditorConfig/DocumentModel/Nodes/EditorConfigDocument.cs
1
using System.Collections.Immutable;
2
using System.Text;
3

4
namespace Kysect.Configuin.EditorConfig.DocumentModel.Nodes;
5

6
public record EditorConfigDocument(ImmutableList<IEditorConfigNode> Children, ImmutableList<string> TrailingTrivia) : IEditorConfigContainerNode
7
{
8
    public EditorConfigDocument() : this([])
8✔
9
    {
10
    }
8✔
11

12
    public EditorConfigDocument(ImmutableList<IEditorConfigNode> children) : this(children, ImmutableList<string>.Empty)
33✔
13
    {
14
    }
33✔
15

16
    IEditorConfigContainerNode IEditorConfigContainerNode.AddChild(IEditorConfigNode child)
17
    {
UNCOV
18
        return AddChild(child);
×
19
    }
20

21
    public IEditorConfigContainerNode WithChildren(ImmutableList<IEditorConfigNode> children)
22
    {
23
        return this with { Children = children };
6✔
24
    }
25

26
    public EditorConfigDocument AddChild(IEditorConfigNode child)
27
    {
28
        return this with { Children = Children.Add(child) };
42✔
29
    }
30

31
    public string ToFullString()
32
    {
33
        var stringBuilder = new StringBuilder();
4✔
34
        List<string> lines = new();
4✔
35
        lines.AddRange(Children.Select(c => c.ToFullString()));
13✔
36
        lines.AddRange(TrailingTrivia);
4✔
37

38
        stringBuilder.AppendJoin(Environment.NewLine, lines);
4✔
39
        return stringBuilder.ToString();
4✔
40
    }
41
}
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