18namespace sequoia::testing
26 void operator()(
const parsing::commandline::arg_list&)
const noexcept {}
36 template<test_mode Mode>
39 check_executor(logger,
operation.early, prediction.early,
"early");
40 check_executor(logger,
operation.late, prediction.late,
"late");
41 check(equality,
"Operation Parameters differ", logger,
operation.arguments, prediction.arguments);
44 using executor = parsing::commandline::executor;
46 template<test_mode Mode>
47 static void check_executor(
test_logger<Mode>& logger,
const executor&
operation,
const executor& prediction, std::string_view tag)
50 testing::check(std::string{
"Existence of"}.append(tag).append(
" function objects differs"), logger, consistent);
55 "Function object tag",
69 template<test_mode Mode>
72 check(equality,
"Zeroth Argument", logger, obtained.zeroth_arg, prediction.zeroth_arg);
73 check(weak_equivalence,
"Operations", logger, obtained.operations, prediction.operations);
74 check(equality,
"Help", logger, obtained.help, prediction.help);
84 template<test_mode Mode>
87 check(weak_equivalence,
"", logger, obtained.get(), prediction);
95 int size()
const noexcept
97 return static_cast<int>(m_Args.size());
103 char** get()
noexcept
105 return !m_Ptrs.empty() ? &m_Ptrs[0] :
nullptr;
108 std::vector<std::string> m_Args;
109 std::vector<char*> m_Ptrs;
Parsing of commandline arguments.
bool check(CheckType flavour, std::string description, test_logger< Mode > &logger, Iter first, Sentinel last, PredictionIter predictionFirst, PredictionSentinel predictionLast, tutor< Advisor > advisor={})
The workhorse for comparing the contents of ranges.
Definition: FreeCheckers.hpp:377
Utilities for checking regular semantics.
Parses command line arguments, building outcome from an option forest.
Definition: CommandLineArguments.hpp:176
Definition: CommandLineArgumentsTestingUtilities.hpp:92
Definition: TestLogger.hpp:183
Used to build a forest of operations which will be invoked at the end of the parsing process.
Definition: CommandLineArguments.hpp:100
The result of parsing command line arguments to build an operation forest.
Definition: CommandLineArguments.hpp:119
Definition: CommandLineArgumentsTestingUtilities.hpp:21
Definition: FreeCheckers.hpp:107
class template, specializations of which implement various comparisons for the specified type.
Definition: FreeCheckers.hpp:78