GCC Code Coverage Report


Directory: ./
File: bindings/python/utils/dependencies.cpp
Date: 2024-08-27 18:20:05
Exec Total Coverage
Lines: 10 10 100.0%
Branches: 12 24 50.0%

Line Branch Exec Source
1 //
2 // Copyright (c) 2020-2021 INRIA
3 //
4
5 #include <boost/python.hpp>
6
7 namespace pinocchio
8 {
9 namespace python
10 {
11
12 namespace bp = boost::python;
13
14 20 void exposeDependencies()
15 {
16
1/2
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
40 bp::scope().attr("WITH_HPP_FCL") =
17 #ifdef PINOCCHIO_WITH_HPP_FCL
18
2/4
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 20 times.
✗ Branch 5 not taken.
40 true;
19 #else
20 false;
21 #endif
22
23
1/2
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
40 bp::scope().attr("WITH_URDFDOM") =
24 #ifdef PINOCCHIO_WITH_URDFDOM
25
2/4
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 20 times.
✗ Branch 5 not taken.
40 true;
26 #else
27 false;
28 #endif
29
30
1/2
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
40 bp::scope().attr("WITH_CPPAD") =
31 #ifdef PINOCCHIO_WITH_CPPAD
32 true;
33 #else
34
2/4
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 20 times.
✗ Branch 5 not taken.
40 false;
35 #endif
36
37
1/2
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
40 bp::scope().attr("WITH_OPENMP") =
38 #ifdef PINOCCHIO_PYTHON_INTERFACE_WITH_OPENMP
39 true;
40 #else
41
2/4
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 20 times.
✗ Branch 5 not taken.
40 false;
42 #endif
43 20 }
44
45 } // namespace python
46 } // namespace pinocchio
47