GCC Code Coverage Report | |||||||||||||||||||||
|
|||||||||||||||||||||
Line | Branch | Exec | Source |
1 |
// |
||
2 |
// Copyright (c) 2016-2020 CNRS INRIA |
||
3 |
// |
||
4 |
|||
5 |
#include <iostream> |
||
6 |
|||
7 |
#include "pinocchio/multibody/model.hpp" |
||
8 |
#include "pinocchio/multibody/data.hpp" |
||
9 |
#include "pinocchio/parsers/python.hpp" |
||
10 |
|||
11 |
#include <boost/test/unit_test.hpp> |
||
12 |
|||
13 |
BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE) |
||
14 |
|||
15 |
✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗✓✗ ✓✗ |
4 |
BOOST_AUTO_TEST_CASE(buildModel) |
16 |
{ |
||
17 |
✓✗✓✗ |
6 |
std::string filename = PINOCCHIO_MODEL_DIR + std::string("/simple_model.py"); |
18 |
|||
19 |
#ifndef NDEBUG |
||
20 |
✓✗✓✗ ✓✗✓✗ |
2 |
std::cout << "Parse filename \"" << filename << "\"" << std::endl; |
21 |
#endif |
||
22 |
✓✗✓✗ |
6 |
pinocchio::Model model = pinocchio::python::buildModel(filename,"model"); |
23 |
#ifndef NDEBUG |
||
24 |
✓✗✓✗ ✓✗✓✗ |
2 |
std::cout << "This model has \"" << model.nq << "\" DoF" << std::endl; |
25 |
#endif |
||
26 |
|||
27 |
✓✗✓✗ ✓✗✓✗ ✓✗✗✓ |
2 |
BOOST_CHECK(model.nq==9); |
28 |
✓✗✓✗ ✓✗✓✗ ✓✗✗✓ |
2 |
BOOST_CHECK(model.nv==8); |
29 |
2 |
} |
|
30 |
|||
31 |
BOOST_AUTO_TEST_SUITE_END() |
Generated by: GCOVR (Version 4.2) |