C++ Utilities  4.15.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Public Member Functions | List of all members
ArgumentParserTests Class Reference

The ArgumentParserTests class tests the ArgumentParser and Argument classes. More...

Inheritance diagram for ArgumentParserTests:
[legend]
Collaboration diagram for ArgumentParserTests:
[legend]

Public Member Functions

void setUp ()
 
void tearDown ()
 
void testArgument ()
 Tests the behaviour of the argument class. More...
 
void testParsing ()
 Tests parsing command line arguments. More...
 
void testCallbacks ()
 Tests whether callbacks are called correctly. More...
 
void testBashCompletion ()
 Tests bash completion. More...
 
void testHelp ()
 Tests –help output. More...
 
void testSetMainArguments ()
 Tests some corner cases in setMainArguments() which are not already checked in the other tests. More...
 
void testNoColorArgument ()
 Tests whether NocolorArgument toggles escape codes correctly. More...
 
void testValueConversion ()
 Tests value conversion provided by Argument and ArgumentOccurrence. More...
 

Detailed Description

The ArgumentParserTests class tests the ArgumentParser and Argument classes.

Definition at line 35 of file argumentparsertests.cpp.

Member Function Documentation

◆ setUp()

void ArgumentParserTests::setUp ( )

Definition at line 66 of file argumentparsertests.cpp.

◆ tearDown()

void ArgumentParserTests::tearDown ( )

Definition at line 70 of file argumentparsertests.cpp.

◆ testArgument()

void ArgumentParserTests::testArgument ( )

Tests the behaviour of the argument class.

Definition at line 77 of file argumentparsertests.cpp.

◆ testBashCompletion()

void ArgumentParserTests::testBashCompletion ( )

Tests bash completion.

Remarks
This tests makes assumptions about the order and the exact output format.

Definition at line 481 of file argumentparsertests.cpp.

◆ testCallbacks()

void ArgumentParserTests::testCallbacks ( )

Tests whether callbacks are called correctly.

Definition at line 441 of file argumentparsertests.cpp.

◆ testHelp()

void ArgumentParserTests::testHelp ( )

Tests –help output.

Definition at line 713 of file argumentparsertests.cpp.

◆ testNoColorArgument()

void ArgumentParserTests::testNoColorArgument ( )

Tests whether NocolorArgument toggles escape codes correctly.

Definition at line 832 of file argumentparsertests.cpp.

◆ testParsing()

void ArgumentParserTests::testParsing ( )

Tests parsing command line arguments.

Definition at line 100 of file argumentparsertests.cpp.

◆ testSetMainArguments()

void ArgumentParserTests::testSetMainArguments ( )

Tests some corner cases in setMainArguments() which are not already checked in the other tests.

Definition at line 812 of file argumentparsertests.cpp.

◆ testValueConversion()

void ArgumentParserTests::testValueConversion ( )

Tests value conversion provided by Argument and ArgumentOccurrence.

Definition at line 874 of file argumentparsertests.cpp.


The documentation for this class was generated from the following file: