Go to the documentation of this file.
54 int testInitialization();
60 TestUtil tester(
"CommandOptionWithCommonTimeArg",
"Initialization", __FILE__, __LINE__ );
69 tester.
assert(
false,
"CommandOptionWithDecimalArg creation should have failed due to missing short and long options.", __LINE__ );
73 tester.
assert(
true,
"CommandOptionWithDecimalArg() threw an exception as expected.", __LINE__ );
81 tester.
assert(
true,
"CommandOptionWithCommonTimeArg was created successfully.", __LINE__ );
82 tester.
assert( (cmdOpt.
getCount() == 0),
"CommandOptionWithCommonTimeArg count should be 0.", __LINE__ );
83 tester.
assert( (cmdOpt.
getValue().size() == 0),
"CommandOptionWithCommonTimeArg value size should be 0.", __LINE__ );
84 tester.
assert( (cmdOpt.
getOrder() == 0),
"CommandOptionWithCommonTimeArg order should be 0.", __LINE__ );
85 tester.
assert( (cmdOpt.
checkArguments().size() == 0),
"CommandOptionWithCommonTimeArg checkArguments() should return nothing.", __LINE__ );
90 tester.
assert(
false,
"CommandOptionWithCommonTimeArg() threw an exception but should not have.", __LINE__ );
103 int main(
int argc,
char *argv[])
111 std::cout <<
"Total Failures for " << __FILE__ <<
": " << errorTotal << std::endl;
113 return( errorTotal );
void assert(bool testExpression, const std::string &testMsg, const int lineNumber)
CommandOptionVec defaultCommandOptionList
unsigned long getOrder(unsigned long idx=-1) const
virtual unsigned long getCount() const
CommandOptionWithCommonTimeArg_T()
int main(int argc, char *argv[])
std::vector< CommandOption * > CommandOptionVec
virtual std::string checkArguments()
Validate arguments passed using this option (and store them).
const std::vector< std::string > & getValue() const
~CommandOptionWithCommonTimeArg_T()
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:38