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

KSP-CKAN / CKAN / 17904669173

22 Sep 2025 04:34AM UTC coverage: 75.604% (+1.2%) from 74.397%
17904669173

push

github

HebaruSan
Merge #4443 Report number of filtered files in install

5231 of 7236 branches covered (72.29%)

Branch coverage included in aggregate %.

192 of 218 new or added lines in 41 files covered. (88.07%)

35 existing lines in 7 files now uncovered.

11163 of 14448 relevant lines covered (77.26%)

1.58 hits per line

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

75.0
/Core/Games/KnownGames.cs
1
using System.Collections.Generic;
2
using System.Linq;
3

4

5
namespace CKAN.Games
6
{
7
    public static class KnownGames
8
    {
9
        public static readonly IGame[] knownGames = new IGame[]
2✔
10
        {
11
            new KerbalSpaceProgram.KerbalSpaceProgram(),
12
            new KerbalSpaceProgram2.KerbalSpaceProgram2(),
13
        };
14

15
        /// <summary>
16
        /// Return a game object based on its short name
17
        /// </summary>
18
        /// <param name="shortName">The short name to find</param>
19
        /// <returns>A game object or null if none found</returns>
20
        public static IGame? GameByShortName(string? shortName)
21
            => knownGames.FirstOrDefault(g => g.ShortName == shortName);
2✔
22

23
        /// <summary>
24
        /// Return the short names of all known games
25
        /// </summary>
26
        /// <returns>Sequence of short name strings</returns>
27
        public static IEnumerable<string> AllGameShortNames()
28
            => knownGames.Select(g => g.ShortName);
2✔
29

30
        public static string[] AllInstanceAnchorFiles
NEW
31
            => knownGames.SelectMany(g => g.InstanceAnchorFiles)
×
32
                         .Distinct()
33
                         .ToArray();
34

35
    }
36
}
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