A test case that can be split into multiple sections.
To create a test case derive from SC::TestCase and run tests in the constructor
Example:
namespace SC
{
struct ConsoleTest;
}
{
{
using namespace SC;
SmallVector<char, 512 *
sizeof(
native_char_t)> consoleConversionBuffer;
Console console(consoleConversionBuffer);
{
String str = StringView("Test Test\n");
console.print(str.view());
}
}
};
namespace SC
{
}
char native_char_t
The native char for the platform (wchar_t (4 bytes) on Windows, char (1 byte) everywhere else )
Definition: PrimitiveTypes.h:34
A test case that can be split into multiple sections.
Definition: Testing.h:69
TestReport & report
The TestReport object passed in the constructor.
Definition: Testing.h:101
TestCase(TestReport &report, StringView testName)
Adds this TestCase to a TestReport with a name.
bool test_section(StringView sectionName, Execute execution=Execute::Default)
Starts a new test section.
Collects multiple TestCase and reports their results.
Definition: Testing.h:25