Browse Source
QA: Use modern Boost test print customisation point
QA: Use modern Boost test print customisation point
Since Boost 1.64, you can use the boost_test_print_type customisation point to provide test printing for types. Move all test printing functions to this, and scrap the fiddly Boost version handling to deal with older Boosts (KiCad is now at minver 1.71).jobs
14 changed files with 73 additions and 159 deletions
-
5qa/qa_utils/include/qa_utils/geometry/geometry.h
-
102qa/qa_utils/include/qa_utils/wx_utils/unit_test_utils.h
-
10qa/qa_utils/wx_utils/unit_test_utils.cpp
-
4qa/tests/common/test_array_options.cpp
-
4qa/tests/common/test_coroutine.cpp
-
7qa/tests/common/wximage_test_utils.cpp
-
10qa/tests/common/wximage_test_utils.h
-
24qa/tests/eeschema/lib_field_test_utils.h
-
1qa/tests/libs/kimath/CMakeLists.txt
-
17qa/tests/libs/kimath/geometry/geom_test_utils.cpp
-
20qa/tests/libs/kimath/geometry/geom_test_utils.h
-
17qa/tests/libs/sexpr/sexpr_test_utils.h
-
2qa/tests/pcbnew/drc/drc_test_utils.cpp
-
9qa/tests/pcbnew/drc/drc_test_utils.h
@ -0,0 +1,17 @@ |
|||
|
|||
|
|||
#include "geom_test_utils.h"
|
|||
|
|||
|
|||
std::ostream& boost_test_print_type( std::ostream& os, const SHAPE_LINE_CHAIN& c ) |
|||
{ |
|||
os << "SHAPE_LINE_CHAIN: " << c.PointCount() << " points: [\n"; |
|||
|
|||
for( int i = 0; i < c.PointCount(); ++i ) |
|||
{ |
|||
os << " " << i << ": " << c.CPoint( i ) << "\n"; |
|||
} |
|||
|
|||
os << "]"; |
|||
return os; |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue