Directory: | ./ |
---|---|
File: | TESTS/TEST_GITLAB_DOC/main.cpp |
Date: | 2025-04-25 19:10:50 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 8 | 8 | 100.0% |
Branches: | 27 | 27 | 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 "phoenix_check.h" | ||
11 | |||
12 | #include "gitlab_doc.h" | ||
13 | |||
14 | ///Test the doc url for gitlab | ||
15 | 1 | void testGitlabDoc(){ | |
16 | |||
17 |
9/9✓ Branch 2 taken 1 times.
✓ Branch 6 taken 1 times.
✓ Branch 10 taken 1 times.
✓ Branch 14 taken 1 times.
✓ Branch 17 taken 1 times.
✓ Branch 20 taken 1 times.
✓ Branch 24 taken 1 times.
✓ Branch 27 taken 1 times.
✓ Branch 30 taken 1 times.
|
1 | phoenix_assert(phoenix_check("Simple gitlab project", |
18 | getGitlabDocUrl("https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixGenerator"), | ||
19 | "https://cta-lapp.pages.in2p3.fr/PHOENIX_LIBS2/PhoenixGenerator/")); | ||
20 |
9/9✓ Branch 2 taken 1 times.
✓ Branch 6 taken 1 times.
✓ Branch 10 taken 1 times.
✓ Branch 14 taken 1 times.
✓ Branch 17 taken 1 times.
✓ Branch 20 taken 1 times.
✓ Branch 24 taken 1 times.
✓ Branch 27 taken 1 times.
✓ Branch 30 taken 1 times.
|
1 | phoenix_assert(phoenix_check("truncated gitlab project", |
21 | getGitlabDocUrl("https://gitlab.in2p3.fr"), | ||
22 | "")); | ||
23 |
9/9✓ Branch 2 taken 1 times.
✓ Branch 6 taken 1 times.
✓ Branch 10 taken 1 times.
✓ Branch 14 taken 1 times.
✓ Branch 17 taken 1 times.
✓ Branch 20 taken 1 times.
✓ Branch 24 taken 1 times.
✓ Branch 27 taken 1 times.
✓ Branch 30 taken 1 times.
|
1 | phoenix_assert(phoenix_check("other project url", |
24 | getGitlabDocUrl("https://some.url"), | ||
25 | "")); | ||
26 | 1 | } | |
27 | |||
28 | |||
29 | 1 | int main(int argc, char ** argv){ | |
30 | 1 | testGitlabDoc(); | |
31 | 1 | return 0; | |
32 | } | ||
33 | |||
34 | |||
35 |