Directory: | ./ |
---|---|
File: | TESTS/TEST_PROJECT_WRAPPER_ENUM/main.cpp |
Date: | 2025-04-25 19:10:50 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 7 | 7 | 100.0% |
Branches: | 9 | 9 | 100.0% |
Line | Branch | Exec | Source |
---|---|---|---|
1 | /*************************************** | ||
2 | Auteur : Pierre Aubert | ||
3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
4 | Licence : CeCILL-C | ||
5 | ****************************************/ | ||
6 | |||
7 | |||
8 | #include <iostream> | ||
9 | #include "phoenix_assert.h" | ||
10 | #include "project_generator.h" | ||
11 | |||
12 | ///Test the project generator | ||
13 | /** @param projectDescription : description of the project | ||
14 | * @param classConfig : class configuration file to be read | ||
15 | * @param isPythonWrapper : true to enable python wrapper, false otherwise | ||
16 | * @return true on success, false otherwise | ||
17 | */ | ||
18 | 1 | bool testProject(const PPath & projectDescription, const PPath & classConfig, bool isPythonWrapper){ | |
19 | 1 | bool b(true); | |
20 | 1 | b &= project_generator(projectDescription, classConfig, isPythonWrapper); | |
21 | 1 | return b; | |
22 | } | ||
23 | |||
24 | 1 | int main(int argc, char ** argv){ | |
25 |
9/9✓ Branch 2 taken 1 times.
✓ Branch 6 taken 1 times.
✓ Branch 10 taken 1 times.
✓ Branch 13 taken 1 times.
✓ Branch 16 taken 1 times.
✓ Branch 19 taken 1 times.
✓ Branch 22 taken 1 times.
✓ Branch 25 taken 1 times.
✓ Branch 28 taken 1 times.
|
1 | phoenix_assert(testProject(PPath(CURRENT_SOURCE_DIR "/project.toml"), |
26 | PPath(CURRENT_SOURCE_DIR "/Shadok.pdata"), true)); | ||
27 | 1 | return 0; | |
28 | } | ||
29 | |||
30 | |||
31 |