![]() |
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"
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().
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().
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().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 229 of file main.cpp.
References testCharToString(), testEscapeString(), testFindInListString(), testGetCommonBegning(), testReplaceListStrInStr(), testReplaceStrInStrMap(), testReplaceVectorStrInStr(), and testStringFunction().
void testCharToString | ( | ) |
Test the phoenix_charToString function.
Definition at line 210 of file main.cpp.
References phoenix_assert, and phoenix_charToString().
Referenced by main().
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().
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().
void testGetCommonBegning | ( | ) |
Test the phoenix_getCommonBegining function.
Definition at line 221 of file main.cpp.
References phoenix_assert, and phoenix_getCommonBegining().
Referenced by main().
void testReplaceListStrInStr | ( | ) |
Test the replaceVectorStrInStr function.
Definition at line 189 of file main.cpp.
References checkReplaceListStrInStr(), and phoenix_assert.
Referenced by main().
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().
void testReplaceVectorStrInStr | ( | ) |
Test the replaceVectorStrInStr function.
Definition at line 163 of file main.cpp.
References checkReplaceVectorStrInStr(), and phoenix_assert.
Referenced by main().
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().