![]() |
PhoenixInkscape
2.0.0
Generate multiple png files with svg inkscape files
|
#include <map>
#include <iostream>
#include "phoenix_assert.h"
#include "phoenix_check.h"
#include "PString.h"
#include "phoenix_system.h"
Go to the source code of this file.
Functions | |
bool | checkOptionCompletion (const PString &program, const PString &partialOption, const PString &prevCursorOption, const PString &cursorOption, const PString &expectedResult) |
Check the option completion of a program. More... | |
bool | checkResult (const PString &resultCmd, const PString &expectedResult) |
Check the restut. More... | |
bool | checkResultSeparator (const PString &resultCmd, const PString &expectedResult, char separator) |
Check the restut. More... | |
void | fillMapString (std::map< PString, bool > &mapStr, const PVecString &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 PString & | program, |
const PString & | partialOption, | ||
const PString & | prevCursorOption, | ||
const PString & | cursorOption, | ||
const PString & | 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 68 of file main.cpp.
References checkResult(), and phoenix_popen().
Check the restut.
resultCmd | : result |
expectedResult | : expected result |
Definition at line 51 of file main.cpp.
References checkResultSeparator().
Referenced by checkOptionCompletion().
bool checkResultSeparator | ( | const PString & | resultCmd, |
const PString & | expectedResult, | ||
char | separator | ||
) |
Check the restut.
resultCmd | : result |
expectedResult | : expected result |
separator | : separator to be used to split the results |
Definition at line 31 of file main.cpp.
References fillMapString(), and PString::split().
Referenced by checkResult().
void fillMapString | ( | std::map< PString, bool > & | mapStr, |
const PVecString & | listStr | ||
) |
Create a map with a string.
mapStr | : map of string to be created |
listStr | : list of string to be used |
Definition at line 19 of file main.cpp.
Referenced by checkResultSeparator().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 99 of file main.cpp.
References testCompletion().
void testCompletion | ( | ) |
Test the completion of the option.
Definition at line 80 of file main.cpp.
References checkOptionCompletion(), and phoenix_assert.