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

samsmithnz / GitHubActionsDotNet / 14707351366

28 Apr 2025 12:04PM CUT coverage: 76.33%. Remained the same
14707351366

push

github

web-flow
Merge pull request #173 from samsmithnz/dependabot/github_actions/core-c27c18812b

Bump gittools/actions from 3.2.0 to 3.2.1 in the core group

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