GCC Code Coverage Report


Directory: ./
File: src/dynamic_graph/tutorial/python-module-py.cc
Date: 2024-11-12 12:07:01
Exec Total Coverage
Lines: 7 7 100.0%
Branches: 3 6 50.0%

Line Branch Exec Source
1 // Copyright (C) 2008-2014 LAAS-CNRS, JRL AIST-CNRS.
2 //
3 // This file is part of jrl-cmakemodules.
4 // jrl-mathtools is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // jrl-mathtools is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public License
14 // along with jrl-mathtools. If not, see <http://www.gnu.org/licenses/>.
15
16 #include "dynamic-graph/python/module.hh"
17
18 #include "/root/robotpkg/wip/py-dynamic-graph-tutorial/work/dynamic-graph-tutorial-1.3.5/src/tutorial-python.h"
19
20 struct register_entity
21 {
22 4 template<typename T> inline void operator()(boost::type<T>) const
23 {
24 4 dynamicgraph::python::exposeEntity<T>();
25 4 }
26 };
27
28
2/4
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
4 BOOST_PYTHON_MODULE(wrap)
29 {
30
1/2
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
2 bp::import("dynamic_graph");
31 2 boost::mpl::for_each<entities_t, boost::type<boost::mpl::_> >(register_entity());
32 2 }
33