ddt
0.1
|
#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" |
int main | ( | int | argc, |
char ** | argv | ||
) |
void splitString | ( | string | input, |
vector< char * > & | v | ||
) |
TEST | ( | CommandLineParserTestUtility | , |
TestSplitString | |||
) |
TEST_F | ( | CommandLineParserTest | , |
setOptionsPubTwo | |||
) |
TEST_F | ( | CommandLineParserTest | , |
setOptionsSub | |||
) |
TEST_F | ( | CommandLineParserTest | , |
setOptionsViewer | |||
) |
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 | ( | CommandLineParserViewerTest | , |
ParseViewerFileName | |||
) |
TEST_F | ( | CommandLineParserViewerTest | , |
ParseViewerStream | |||
) |
string h0 = "test -h" |
string h1 = "test --help" |
string h2 = "test -h -s stream" |