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

samsmithnz / GitHubActionsDotNet / 7900757945

14 Feb 2024 11:53AM CUT coverage: 76.33%. Remained the same
7900757945

Pull #133

github

web-flow
Merge 652e32ffc into 5ca82b379
Pull Request #133: Bump the core group in /src/GitHubActionsDotNet with 1 update

144 of 222 branches covered (64.86%)

Branch coverage included in aggregate %.

559 of 699 relevant lines covered (79.97%)

13.88 hits per line

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

84.62
/src/GitHubActionsDotNet/Helpers/FileSearch.cs
1
using GitHubActionsDotNet.Common;
2
using System.Collections.Generic;
3
using System.IO;
4
using System.Linq;
5

6
namespace GitHubActionsDotNet.Helpers
7
{
8
    public class FileSearch
9
    {
10
        public static List<string> GetFilesForDirectory(string startingDirectory)
11
        {
12
            if (startingDirectory == null)
8!
13
            {
14
                return new List<string>();
×
15
            }
16
            List<string> fileTypes = DependabotCommon.GetFileTypesToSearch();
8✔
17
            List<string> sortedFiles = new List<string>();
8✔
18
            foreach (string fileType in fileTypes)
128✔
19
            {
20
                string[] files = Directory.GetFiles(startingDirectory, fileType, SearchOption.AllDirectories);
56✔
21
                //Order files alphabetically - there is some variation on different OS's on order
22
                sortedFiles.AddRange(files.ToList<string>());
56✔
23
            }
24
            sortedFiles.Sort();
8✔
25
            return sortedFiles;
8✔
26
        }
27
    }
28
}
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