![]() |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
#include <map>#include <iostream>#include "phoenix_assert.h"#include "phoenix_check.h"#include "string_utils.h"#include "string_system.h"
Include dependency graph for main.cpp:Go to the source code of this file.
Functions | |
| bool | checkOptionCompletion (const std::string &program, const std::string &partialOption, const std::string &prevCursorOption, const std::string &cursorOption, const std::string &expectedResult) |
| Check the option completion of a program. More... | |
| bool | checkResult (const std::string &resultCmd, const std::string &expectedResult) |
| Check the restut. More... | |
| bool | checkResultSeparator (const std::string &resultCmd, const std::string &expectedResult, char separator) |
| Check the restut. More... | |
| void | fillMapString (std::map< std::string, bool > &mapStr, const std::list< std::string > &listStr) |
| Create a map with a string. More... | |
| int | main (int argc, char **argv) |
| void | testCompletion () |
| Test the completion of the option. More... | |
| bool checkOptionCompletion | ( | const std::string & | program, |
| const std::string & | partialOption, | ||
| const std::string & | prevCursorOption, | ||
| const std::string & | cursorOption, | ||
| const std::string & | expectedResult | ||
| ) |
Check the option completion of a program.
| program | : program to be tested |
| partialOption | : partial typed option |
| prevCursorOption | : previous cursor option |
| cursorOption | : option of the cursor |
| expectedResult | : expected completion result |
Definition at line 69 of file main.cpp.
References checkResult(), and phoenix_popen().
Here is the call graph for this function:| bool checkResult | ( | const std::string & | resultCmd, |
| const std::string & | expectedResult | ||
| ) |
Check the restut.
| resultCmd | : result |
| expectedResult | : expected result |
Definition at line 52 of file main.cpp.
References checkResultSeparator().
Referenced by checkOptionCompletion().
Here is the call graph for this function:
Here is the caller graph for this function:| bool checkResultSeparator | ( | const std::string & | resultCmd, |
| const std::string & | expectedResult, | ||
| char | separator | ||
| ) |
Check the restut.
| resultCmd | : result |
| expectedResult | : expected result |
| separator | : separator to be used to split the results |
Definition at line 32 of file main.cpp.
References cutStringList(), and fillMapString().
Referenced by checkResult().
Here is the call graph for this function:
Here is the caller graph for this function:| void fillMapString | ( | std::map< std::string, bool > & | mapStr, |
| const std::list< std::string > & | listStr | ||
| ) |
Create a map with a string.
| mapStr | : map of string to be created |
| listStr | : list of string to be used |
Definition at line 20 of file main.cpp.
Referenced by checkResultSeparator().
Here is the caller graph for this function:| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 100 of file main.cpp.
References testCompletion().
Here is the call graph for this function:| void testCompletion | ( | ) |
Test the completion of the option.
Definition at line 81 of file main.cpp.
References checkOptionCompletion(), and phoenix_assert.
Here is the call graph for this function: