Add a couple of remaining Parser tests

This commit is contained in:
Matt Nadareski
2025-04-14 12:32:26 -04:00
parent f3e2ffaf56
commit 94d64c3f6e
2 changed files with 66 additions and 2 deletions

View File

@@ -532,7 +532,7 @@ namespace SabreTools.DatTools
/// <param name="statReportFormat">Format of the Statistics Report to be created</param>
/// <param name="statsList">List of statistics objects to set</param>
/// <returns>BaseReport of the specific internal type that corresponds to the inputs</returns>
public static BaseReport? CreateReport(StatReportFormat statReportFormat, List<DatStatistics> statsList)
public static BaseReport CreateReport(StatReportFormat statReportFormat, List<DatStatistics> statsList)
{
return statReportFormat switch
{
@@ -542,7 +542,9 @@ namespace SabreTools.DatTools
StatReportFormat.HTML => new Reports.Formats.Html(statsList),
StatReportFormat.SSV => new Reports.Formats.SemicolonSeparatedValue(statsList),
StatReportFormat.TSV => new Reports.Formats.TabSeparatedValue(statsList),
_ => null,
// We use console output as a backup for generic BaseReport
_ => new Reports.Formats.ConsoleOutput(statsList),
};
}