2#ifndef STORMM_CHECKLIST_H
3#define STORMM_CHECKLIST_H
8#include "unit_test_enumerators.h"
81 void printSummary(TestVerbosity verbosity = TestVerbosity::COMPACT)
const;
92 std::vector<std::string> sections;
93 std::vector<int> successes;
94 std::vector<int> skips;
95 std::vector<int> ignored_failures;
98 std::vector<int> failures;
int getSectionIndex(const std::string §ion_name) const
Get the index of a test section based on its name.
Definition checklist.cpp:166
void changeSection(const std::string §ion_name)
Switch to a new (or previously started) section of the test case CheckList.
Definition checklist.cpp:71
int getSuccessCount(int section_index=-1) const
Get the current number of successes in a particular section. The default value of -1 returns the coun...
Definition checklist.cpp:189
int getSkipCount(int section_index=-1) const
Get the current number of skipped tests in a particular section. The default value of -1 returns the ...
Definition checklist.cpp:211
void logResult(CheckResult result)
Log a result in a checklist based on the current section setting.
Definition checklist.cpp:53
int getIgnoredFailureCount(int section_index=-1) const
Get the current number of ignored test failures in a particular section. The default value of -1 retu...
Definition checklist.cpp:222
std::string getSectionName(const int section_index) const
Get the name of a test section based on its index.
Definition checklist.cpp:175
int getOverallFailureCount() const
Get the total number of failures across all sections.
Definition checklist.cpp:233
int getCurrentSection() const
Get the current section number.
Definition checklist.cpp:184
int getOverallSkipCount() const
Get the total number of skipped tests across all sections.
Definition checklist.cpp:243
void printSummary(TestVerbosity verbosity=TestVerbosity::COMPACT) const
Print a summary of test results from this checklist.
Definition checklist.cpp:253
int getFailureCount(int section_index=-1) const
Get the current number of failures in a particular section. The default value of -1 returns the count...
Definition checklist.cpp:200
CheckList()
Constructor for the CheckList object prepares a blank slate.
Definition checklist.cpp:24