Add source code for ctrtool

This commit is contained in:
jakcron
2022-03-12 16:00:33 +08:00
parent 6ad2f13c50
commit 800f5776bc
681 changed files with 219734 additions and 0 deletions
@@ -0,0 +1,20 @@
#pragma once
#include "ITestClass.h"
#include <tc/cli/OptionParser.h>
class cli_OptionParser_TestClass : public ITestClass
{
public:
void runAllTests();
private:
void test_Constructor_DefaultConstructor();
void test_ProcessNoOptionsWithNoHandlers();
void test_ProcessOptionsWithNoHandlers();
void test_ProcessOptionsWithOnlyUnkHandler();
void test_ProcessOptionsWithLiteralHandlers();
void test_ProcessOptionsWithRegexHandlers();
void test_ProcessOptionsWithLiteralAndRegexHandlers();
void test_NullHandlerSupplied();
void test_RegularHandlerProvidesNoOptionLiteralOrRegex();
void test_ProcessMalformedOptions();
};