![]() |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
#include <iostream>
#include "phoenix_assert.h"
#include "phoenix_check.h"
#include "string_lower_upper.h"
Go to the source code of this file.
Functions | |
bool | checkResultFirstLower (const std::string &testName, const std::string &strValue, const std::string &strReference) |
Check string lower expression. More... | |
bool | checkResultFirstUpper (const std::string &testName, const std::string &strValue, const std::string &strReference) |
Check string upper expression. More... | |
bool | checkResultLower (const std::string &testName, const std::string &strValue, const std::string &strReference) |
Check string lower expression. More... | |
bool | checkResultLowerUnderscore (const std::string &testName, const std::string &strValue, const std::string &strReference) |
Check string lower expression. More... | |
bool | checkResultUpper (const std::string &testName, const std::string &strValue, const std::string &strReference) |
Check string upper expression. More... | |
int | main (int argc, char **argv) |
bool | testCharsType (const std::string &tabChar, bool isNumber, bool isLetter, bool isLowerCase, bool isUpperCase, bool isDot, bool isStar) |
Check char type. More... | |
void | testIsListStrNumber () |
Test the is lower/upper case. More... | |
void | testIsLowerUpper () |
Test the is lower/upper case. More... | |
void | testIsType () |
Test the is lower/upper case. More... | |
void | testStringLowerUpper () |
Test lower/upper to string. More... | |
bool checkResultFirstLower | ( | 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 42 of file main.cpp.
References firstToLower(), and phoenix_check().
Referenced by testStringLowerUpper().
bool checkResultFirstUpper | ( | const std::string & | testName, |
const std::string & | strValue, | ||
const std::string & | strReference | ||
) |
Check string upper expression.
testName | : name of the test |
strValue | : string to be tested |
strReference | : reference string |
Definition at line 53 of file main.cpp.
References firstToUpper(), and phoenix_check().
Referenced by testStringLowerUpper().
bool checkResultLower | ( | 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 20 of file main.cpp.
References phoenix_check(), and strToLower().
Referenced by testStringLowerUpper().
bool checkResultLowerUnderscore | ( | 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 64 of file main.cpp.
References phoenix_check(), and strToLowerUnderscore().
Referenced by testStringLowerUpper().
bool checkResultUpper | ( | const std::string & | testName, |
const std::string & | strValue, | ||
const std::string & | strReference | ||
) |
Check string upper expression.
testName | : name of the test |
strValue | : string to be tested |
strReference | : reference string |
Definition at line 31 of file main.cpp.
References phoenix_check(), and strToUpper().
Referenced by testStringLowerUpper().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 162 of file main.cpp.
References testIsListStrNumber(), testIsLowerUpper(), testIsType(), and testStringLowerUpper().
bool testCharsType | ( | const std::string & | tabChar, |
bool | isNumber, | ||
bool | isLetter, | ||
bool | isLowerCase, | ||
bool | isUpperCase, | ||
bool | isDot, | ||
bool | isStar | ||
) |
Check char type.
tabChar | : table of characters with the same results |
isNumber | : true if the tabChar is composed of numbers |
isLetter | : true if the tabChar is composed of letters |
isLowerCase | : true if the tabChar is composed of lower cases |
isUpperCase | : true if the tabChar is composed of upper cases |
isDot | : true if the tabChar is composed of dot |
isStar | : true if the tabChar is composed of star |
Definition at line 104 of file main.cpp.
References isCharLetter(), isCharLetterOrStar(), isCharLowerCase(), isCharNumber(), isCharNumberOrLetter(), isCharNumberOrLetterOrDot(), isCharNumberOrLetterOrStar(), isCharNumberOrStar(), isCharUpperCase(), and phoenix_functionOk().
Referenced by testIsType().
void testIsListStrNumber | ( | ) |
Test the is lower/upper case.
Definition at line 151 of file main.cpp.
References isListStrNumber(), and phoenix_assert.
Referenced by main().
void testIsLowerUpper | ( | ) |
Test the is lower/upper case.
Definition at line 89 of file main.cpp.
References isStrLowerCase(), isStrUpperCase(), and phoenix_assert.
Referenced by main().
void testIsType | ( | ) |
Test the is lower/upper case.
Definition at line 127 of file main.cpp.
References isCharNumberOrDot(), isStrNumber(), isStrNumberDotMinusPlusE(), isStrNumberOrDot(), phoenix_assert, and testCharsType().
Referenced by main().
void testStringLowerUpper | ( | ) |
Test lower/upper to string.
Definition at line 70 of file main.cpp.
References checkResultFirstLower(), checkResultFirstUpper(), checkResultLower(), checkResultLowerUnderscore(), checkResultUpper(), and phoenix_assert.
Referenced by main().