9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
21 namespace tt = boost::test_tools;
22 using namespace Acts::UnitLiterals;
51 bool targetReached =
false;
61 double pathAccumulated = 0.;
74 double targetTolerance = 1
_um;
79 std::string debugString =
"";
81 size_t debugPfxWidth = 30;
82 size_t debugMsgWidth = 50;
114 BOOST_CHECK(!abortList(result, state, stepper));
120 BOOST_CHECK(!abortList(result, state, stepper));
126 while (!abortList(result, state, stepper)) {
137 BOOST_CHECK(path(state, stepper));
145 template <
typename propagator_state_t,
typename stepper_t>
154 template <
typename propagator_state_t,
typename stepper_t>
161 template <
typename propagator_state_t,
typename stepper_t,
typename result_t>
162 bool operator()(
const propagator_state_t&,
const stepper_t&,
163 const result_t&)
const {
171 template <
typename propagator_state_t,
typename stepper_t>
172 bool operator()(
const propagator_state_t&,
const stepper_t&)
const {
180 template <
typename propagator_state_t,
typename stepper_t,
typename result_t>
181 bool operator()(
const propagator_state_t&,
const stepper_t&,
182 const result_t&)
const {
186 template <
typename propagator_state_t,
typename stepper_t>
187 bool operator()(
const propagator_state_t&,
const stepper_t&)
const {
193 template <
typename propagator_state_t,
typename stepper_t>
194 bool operator()(
const propagator_state_t&,
const stepper_t&)
const {
200 template <
typename propagator_state_t,
typename stepper_t,
typename result_t>
201 bool operator()(
const propagator_state_t&,
const stepper_t&,
202 const result_t&)
const {
207 template <
typename P,
typename S,
typename... As>
209 detail::all_of_v<concept ::abort_condition_signature_check_v<As, P, S>...>;
215 static_assert(signature_check<P, S, AborterWithoutResult>,
"failed");
216 static_assert(signature_check<P, S, AborterWithResultA>,
"failed");
217 static_assert(signature_check<P, S, AborterWithResultB>,
"failed");
226 static_assert(!signature_check<P, S, AborterWithResultInvalid>,
"failed");
229 static_assert(!signature_check<P, S, AborterWithoutResultInvalid>,
"failed");