Skip to content

Commit 327e771

Browse files
committed
Merge #4439 Even more tests
2 parents 263645d + 8136ad1 commit 327e771

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+904
-342
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ All notable changes to this project will be documented in this file.
3030
- [Netkan] Exclude internal .ckan files from `install_size` (#4348 by: HebaruSan)
3131
- [Core] Generate and tidy up XML docs for Core (#4351 by: HebaruSan)
3232
- [Core] Use setter instead of reflection to set max transaction timeout (#4365 by: doinkythederp; reviewed: HebaruSan)
33-
- [Build] Coverage and more tests (#4383, #4396, #4408, #4420, #4422, #4423, #4425, #4426, #4429, #4435 by: HebaruSan)
33+
- [Build] Coverage and more tests (#4383, #4396, #4408, #4420, #4422, #4423, #4425, #4426, #4429, #4435, #4439 by: HebaruSan)
3434
- [Multiple] Switch Inflator from Mono to dotnet (#4387 by: HebaruSan)
3535
- [Multiple] Migrate metadata tester from Mono to dotnet (#4390 by: HebaruSan)
3636
- [Multiple] Writethrough when saving files, add Netkan tests (#4392 by: HebaruSan)

Cmdline/Action/AuthToken.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ public string GetUsage(string verb)
152152
return ht;
153153
}
154154

155+
[ExcludeFromCodeCoverage]
155156
public static IEnumerable<string> GetHelp(string verb)
156157
{
157158
// Add a usage prefix line

Cmdline/Action/Cache.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public string GetUsage(string verb)
4141
return ht;
4242
}
4343

44+
[ExcludeFromCodeCoverage]
4445
public static IEnumerable<string> GetHelp(string verb)
4546
{
4647
// Add a usage prefix line
@@ -264,6 +265,7 @@ private void printCacheInfo()
264265
}
265266
}
266267

268+
[ExcludeFromCodeCoverage]
267269
private void PrintUsage(string verb)
268270
{
269271
foreach (var h in CacheSubOptions.GetHelp(verb))

Cmdline/Action/Compat.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public string GetUsage(string verb)
3939
return ht;
4040
}
4141

42+
[ExcludeFromCodeCoverage]
4243
public static IEnumerable<string> GetHelp(string verb)
4344
{
4445
// Add a usage prefix line
@@ -297,6 +298,7 @@ private bool Set(CompatSetOptions setOptions,
297298
return true;
298299
}
299300

301+
[ExcludeFromCodeCoverage]
300302
private void PrintUsage(string verb)
301303
{
302304
foreach (var h in CompatSubOptions.GetHelp(verb))

Cmdline/Action/Filter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ private static IGame GetGame(string? gameId, CKAN.GameInstance instance)
247247
return instance.game;
248248
}
249249

250+
[ExcludeFromCodeCoverage]
250251
private void PrintUsage(string verb)
251252
{
252253
foreach (var h in FilterSubOptions.GetHelp(verb))
@@ -282,6 +283,7 @@ public string GetUsage(string verb)
282283
return ht;
283284
}
284285

286+
[ExcludeFromCodeCoverage]
285287
public static IEnumerable<string> GetHelp(string verb)
286288
{
287289
// Add a usage prefix line

Cmdline/Action/GameInstance.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public string GetUsage(string verb)
4949
return ht;
5050
}
5151

52+
[ExcludeFromCodeCoverage]
5253
public static IEnumerable<string> GetHelp(string verb)
5354
{
5455
// Add a usage prefix line
@@ -689,6 +690,7 @@ int badArgument()
689690
}
690691
#endregion
691692

693+
[ExcludeFromCodeCoverage]
692694
private void PrintUsage(string verb)
693695
{
694696
foreach (var h in InstanceSubOptions.GetHelp(verb))

Cmdline/Action/Mark.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ private int MarkAuto(MarkAutoOptions opts,
142142
return Exit.ERROR;
143143
}
144144

145+
[ExcludeFromCodeCoverage]
145146
private void PrintUsage(string verb)
146147
{
147148
foreach (var h in MarkSubOptions.GetHelp(verb))
@@ -175,6 +176,7 @@ public string GetUsage(string verb)
175176
return ht;
176177
}
177178

179+
[ExcludeFromCodeCoverage]
178180
public static IEnumerable<string> GetHelp(string verb)
179181
{
180182
// Add a usage prefix line

Cmdline/Action/Repair.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public string GetUsage(string verb)
2323
return ht;
2424
}
2525

26+
[ExcludeFromCodeCoverage]
2627
public static IEnumerable<string> GetHelp(string verb)
2728
{
2829
// Add a usage prefix line

Cmdline/Action/Repo.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public string GetUsage(string verb)
4242
return ht;
4343
}
4444

45+
[ExcludeFromCodeCoverage]
4546
public static IEnumerable<string> GetHelp(string verb)
4647
{
4748
// Add a usage prefix line
@@ -449,6 +450,7 @@ private int DefaultRepository(RepoDefaultOptions options)
449450
return Exit.ERROR;
450451
}
451452

453+
[ExcludeFromCodeCoverage]
452454
private void PrintUsage(string verb)
453455
{
454456
foreach (var h in RepoSubOptions.GetHelp(verb))

Cmdline/Action/Stability.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ private int Set(StabilitySetOptions opts, CKAN.GameInstance instance, IUser user
127127
return Exit.OK;
128128
}
129129

130+
[ExcludeFromCodeCoverage]
130131
private static void PrintUsage(IUser user, string verb)
131132
{
132133
foreach (var h in StabilitySubOptions.GetHelp(verb))
@@ -160,6 +161,7 @@ public string GetUsage(string verb)
160161
return ht;
161162
}
162163

164+
[ExcludeFromCodeCoverage]
163165
public static IEnumerable<string> GetHelp(string verb)
164166
{
165167
// Add a usage prefix line

0 commit comments

Comments
 (0)