ddt  0.1
Classes | Functions | Variables
testCommandLineParser.cpp File Reference
#include <gtest/gtest.h>
#include <array>
#include "boost/format.hpp"
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include "ddt/commandLineParser.hpp"

Classes

class  CommandLineParserSpy
 
class  CommandLineParserTest
 
class  CommandLineParserHelpTest
 
class  CommandLineParserViewerTest
 
class  CommandLineParserSubscriberTest
 
class  CommandLineParserPublisherTest
 

Functions

void splitString (string input, vector< char * > &v)
 
 TEST_F (CommandLineParserTest, setOptionsViewer)
 
 TEST_F (CommandLineParserTest, setOptionsSub)
 
 TEST_F (CommandLineParserTest, setOptionsPubTwo)
 
 TEST_F (CommandLineParserViewerTest, ParseViewer)
 Test the parsing of the help option. More...
 
 TEST_F (CommandLineParserViewerTest, ParseViewerFileName)
 
 TEST_F (CommandLineParserViewerTest, ParseViewerStream)
 
 TEST (CommandLineParserTestUtility, TestSplitString)
 
int main (int argc, char **argv)
 

Variables

string h0 = "test -h"
 
string h1 = "test --help"
 
string h2 = "test -h -s stream"
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ splitString()

void splitString ( string  input,
vector< char * > &  v 
)

◆ TEST()

TEST ( CommandLineParserTestUtility  ,
TestSplitString   
)

◆ TEST_F() [1/6]

TEST_F ( CommandLineParserTest  ,
setOptionsPubTwo   
)

◆ TEST_F() [2/6]

TEST_F ( CommandLineParserTest  ,
setOptionsSub   
)

◆ TEST_F() [3/6]

TEST_F ( CommandLineParserTest  ,
setOptionsViewer   
)

◆ TEST_F() [4/6]

TEST_F ( CommandLineParserViewerTest  ,
ParseViewer   
)

Test the parsing of the help option.

This test verifies that -h and –help print the help to stdout.

◆ TEST_F() [5/6]

TEST_F ( CommandLineParserViewerTest  ,
ParseViewerFileName   
)

◆ TEST_F() [6/6]

TEST_F ( CommandLineParserViewerTest  ,
ParseViewerStream   
)

Variable Documentation

◆ h0

string h0 = "test -h"

◆ h1

string h1 = "test --help"

◆ h2

string h2 = "test -h -s stream"