PhoenixGenerator  2.0.0
Set of tools to generate code
wrapper_test.h File Reference
+ Include dependency graph for wrapper_test.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool project_wrapper_moduleGeneratorTest (const PPath &modulePath, const ProjectConfig &projectConfig, const PString &baseImplInclude, const std::vector< PClassConfig > &vecClassConfig, const PVecPath &vecInclude)
 Generate the unit tests of the project. More...
 

Function Documentation

◆ project_wrapper_moduleGeneratorTest()

bool project_wrapper_moduleGeneratorTest ( const PPath projectPath,
const ProjectConfig projectConfig,
const PString moduleName,
const std::vector< PClassConfig > &  vecClassConfig,
const PVecPath vecInclude 
)

Generate the unit tests of the project.

Parameters
projectPath: path of the module
projectConfig: config of the project
moduleName: name of the module
vecClassConfig: vector of class confoguration
vecInclude: vector of includes
Returns
true on success, false otherwise

Definition at line 169 of file wrapper_test.cpp.

169  {
170  PPath testDirectory(projectPath / PPath("tests"));
171  if(!testDirectory.createDirectory()){
172  std::cerr << "project_wrapper_generator : cannot create unit tests directory of project '"<<testDirectory<<"'" << std::endl;
173  return false;
174  }
175  if(!project_wrapper_allClassTest(testDirectory, moduleName, vecClassConfig)){return false;}
176 
177 
178  return true;
179 }
Path of a directory or a file.
Definition: PPath.h:17
bool project_wrapper_allClassTest(const PPath &testDirectory, const PString &moduleName, const std::vector< PClassConfig > &vecClassConfig)
Generate the test for all class inside the module.

References PPath::createDirectory(), and project_wrapper_allClassTest().

Referenced by project_wrapper_generator().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: