mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add a couple of remaining Parser tests
This commit is contained in:
@@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user