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

lucaslorentz / minicover / #184

23 Dec 2024 09:22AM UTC coverage: 35.054% (+0.2%) from 34.84%
#184

push

azure-devops

web-flow
Merge pull request #177 from lucaslorentz/system-commandline

Migrate to System.CommandLine

21 of 53 new or added lines in 24 files covered. (39.62%)

903 of 2576 relevant lines covered (35.05%)

7711.09 hits per line

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

83.33
/src/MiniCover/CommandLine/FilesPatternOption.cs
1
using System.Collections.Generic;
2
using System.Linq;
3

4
namespace MiniCover.CommandLine.Options
5
{
6
    public abstract class FilesPatternOption : IMultiValueOption
7
    {
8
        public IList<string> Value { get; private set; }
54✔
9
        public abstract string Name { get; }
NEW
10
        public virtual string ShortName => null;
×
11
        public abstract string Description { get; }
12
        protected abstract IList<string> DefaultValue { get; }
13

14
        public void ReceiveValue(IList<string> values)
15
        {
16
            if (values == null || values.Count == 0)
18✔
17
            {
18
                Value = DefaultValue;
12✔
19
                return;
12✔
20
            }
21

22
            Value = values.Where(v => !string.IsNullOrEmpty(v)).ToArray();
18✔
23
        }
24
    }
25
}
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