![]() |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
#include <iostream>#include <vector>#include "phoenix_assert.h"#include "phoenix_check.h"#include "string_function.h"
Include dependency graph for main.cpp:Go to the source code of this file.
Functions | |
| bool | checkReplaceListStrInStr (const std::string &inputStr, const std::list< std::string > &vecPattern, const std::string &replace, const std::string &strReference) |
| Check the replaceVectorStrInStr function. More... | |
| bool | checkReplaceVectorStrInStr (const std::string &inputStr, const std::vector< std::string > &vecPattern, const std::string &replace, const std::string &strReference) |
| Check the replaceVectorStrInStr function. More... | |
| bool | checkString (const std::string &testName, const std::string &strValue, const std::string &strReference) |
| Check string lower expression. More... | |
| int | main (int argc, char **argv) |
| void | testCharToString () |
| Test the phoenix_charToString function. More... | |
| void | testEscapeString () |
| Test the phoenix_escapeStr function. More... | |
| void | testFindInListString () |
| Test the find in list string filename function. More... | |
| void | testGetCommonBegning () |
| Test the phoenix_getCommonBegining function. More... | |
| void | testReplaceListStrInStr () |
| Test the replaceVectorStrInStr function. More... | |
| void | testReplaceStrInStrMap () |
| Test the replace of str in str with map. More... | |
| void | testReplaceVectorStrInStr () |
| Test the replaceVectorStrInStr function. More... | |
| void | testStringFunction () |
| Test the string filename function. More... | |
| bool checkReplaceListStrInStr | ( | const std::string & | inputStr, |
| const std::list< std::string > & | vecPattern, | ||
| const std::string & | replace, | ||
| const std::string & | strReference | ||
| ) |
Check the replaceVectorStrInStr function.
| inputStr | : input string |
| vecPattern | : list of patterns |
| replace | : substitution string |
| strReference | : expected result |
Definition at line 181 of file main.cpp.
References phoenix_check(), and replaceListStrInStr().
Referenced by testReplaceListStrInStr().
Here is the call graph for this function:
Here is the caller graph for this function:| bool checkReplaceVectorStrInStr | ( | const std::string & | inputStr, |
| const std::vector< std::string > & | vecPattern, | ||
| const std::string & | replace, | ||
| const std::string & | strReference | ||
| ) |
Check the replaceVectorStrInStr function.
| inputStr | : input string |
| vecPattern | : vector of patterns |
| replace | : substitution string |
| strReference | : expected result |
Definition at line 155 of file main.cpp.
References phoenix_check(), and replaceVectorStrInStr().
Referenced by testReplaceVectorStrInStr().
Here is the call graph for this function:
Here is the caller graph for this function:| bool checkString | ( | const std::string & | testName, |
| const std::string & | strValue, | ||
| const std::string & | strReference | ||
| ) |
Check string lower expression.
| testName | : name of the test |
| strValue | : string to be tested |
| strReference | : reference string |
Definition at line 21 of file main.cpp.
References phoenix_check().
Here is the call graph for this function:| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 229 of file main.cpp.
References testCharToString(), testEscapeString(), testFindInListString(), testGetCommonBegning(), testReplaceListStrInStr(), testReplaceStrInStrMap(), testReplaceVectorStrInStr(), and testStringFunction().
Here is the call graph for this function:| void testCharToString | ( | ) |
Test the phoenix_charToString function.
Definition at line 210 of file main.cpp.
References phoenix_assert, and phoenix_charToString().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testEscapeString | ( | ) |
Test the phoenix_escapeStr function.
Definition at line 216 of file main.cpp.
References phoenix_assert, phoenix_check(), and phoenix_escapeStr().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testFindInListString | ( | ) |
Test the find in list string filename function.
Definition at line 26 of file main.cpp.
References eraseLastCharsInStr(), findInListString(), findInVectorString(), phoenix_assert, and replaceStrInStr().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testGetCommonBegning | ( | ) |
Test the phoenix_getCommonBegining function.
Definition at line 221 of file main.cpp.
References phoenix_assert, and phoenix_getCommonBegining().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testReplaceListStrInStr | ( | ) |
Test the replaceVectorStrInStr function.
Definition at line 189 of file main.cpp.
References checkReplaceListStrInStr(), and phoenix_assert.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testReplaceStrInStrMap | ( | ) |
Test the replace of str in str with map.
Definition at line 201 of file main.cpp.
References phoenix_assert, and replaceStrInStr().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testReplaceVectorStrInStr | ( | ) |
Test the replaceVectorStrInStr function.
Definition at line 163 of file main.cpp.
References checkReplaceVectorStrInStr(), and phoenix_assert.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testStringFunction | ( | ) |
Test the string filename function.
Definition at line 63 of file main.cpp.
References checkString(), copyStr(), countNbChar(), countStrInStr(), cutStringList(), cutStringOnSpacesList(), cutStringOnSpacesVector(), cutStringVector(), eraseCharInStr(), eraseCharsInStr(), findCharsInString(), findInString(), isSameBegining(), phoenix_assert, replaceCharInStr(), replaceCharsInStr(), and replaceStrInStr().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function: