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

SamboyCoding / Tomlet / 12645117425

07 Jan 2025 04:19AM UTC coverage: 91.317% (-0.5%) from 91.859%
12645117425

Pull #47

github

web-flow
Merge d6b623c12 into 0d521fbbe
Pull Request #47: feat: runtime comment provider

975 of 1140 branches covered (85.53%)

63 of 80 new or added lines in 13 files covered. (78.75%)

1956 of 2142 relevant lines covered (91.32%)

216.87 hits per line

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

0.0
/Tomlet/CommentProviderUtil.cs
1
using System;
2

3
namespace Tomlet;
4

5
internal static class CommentProviderUtil
6
{
7
    public static string GetComment(Type provider)
NEW
8
    {
×
NEW
9
        var constructor = provider.GetConstructor(Type.EmptyTypes);
×
NEW
10
        if (constructor == null)
×
NEW
11
        {
×
NEW
12
            throw new ArgumentException("Provider must have a parameterless constructor");
×
13
        }
14

NEW
15
        var instance = (ICommentProvider)constructor.Invoke(null);
×
NEW
16
        return instance.GetComment();
×
NEW
17
    }
×
18
}
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