GCC Code Coverage Report


Directory: ./
File: bindings/python/crocoddyl/core/data-collector-base.cpp
Date: 2025-03-26 19:23:43
Exec Total Coverage
Lines: 3 3 100.0%
Branches: 7 14 50.0%

Line Branch Exec Source
1 ///////////////////////////////////////////////////////////////////////////////
2 // BSD 3-Clause License
3 //
4 // Copyright (C) 2019-2025, University of Edinburgh, Heriot-Watt University
5 // Copyright note valid unless otherwise stated in individual files.
6 // All rights reserved.
7 ///////////////////////////////////////////////////////////////////////////////
8
9 #include "crocoddyl/core/data-collector-base.hpp"
10
11 #include "python/crocoddyl/core/core.hpp"
12
13 namespace crocoddyl {
14 namespace python {
15
16 #define CROCODDYL_DATA_COLLECTOR_ABSTRACT_PYTHON_BINDINGS(Scalar) \
17 typedef DataCollectorAbstractTpl<Scalar> Data; \
18 bp::register_ptr_to_python<std::shared_ptr<Data>>(); \
19 bp::class_<Data>("DataCollectorAbstract", \
20 "Abstract class for common collection of data used in " \
21 "different objects in action model.\n\n") \
22 .def(CopyableVisitor<Data>());
23
24 10 void exposeDataCollector() {
25
7/14
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
✓ Branch 8 taken 10 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 10 times.
✗ Branch 12 not taken.
✓ Branch 14 taken 10 times.
✗ Branch 15 not taken.
✓ Branch 19 taken 10 times.
✗ Branch 20 not taken.
✓ Branch 22 taken 10 times.
✗ Branch 23 not taken.
✓ Branch 25 taken 10 times.
✗ Branch 26 not taken.
20 CROCODDYL_PYTHON_SCALARS(CROCODDYL_DATA_COLLECTOR_ABSTRACT_PYTHON_BINDINGS)
26 10 }
27
28 } // namespace python
29 } // namespace crocoddyl
30