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;
116 BOOST_CHECK(!abortList(result, state, stepper));
122 BOOST_CHECK(!abortList(result, state, stepper));
128 while (!abortList(result, state, stepper)) {
139 BOOST_CHECK(path(state, stepper));
147 template <
typename propagator_state_t,
typename stepper_t>
156 template <
typename propagator_state_t,
typename stepper_t>
163 template <
typename propagator_state_t,
typename stepper_t,
typename result_t>
164 bool operator()(
const propagator_state_t&,
const stepper_t&,
165 const result_t&)
const {
173 template <
typename propagator_state_t,
typename stepper_t>
174 bool operator()(
const propagator_state_t&,
const stepper_t&)
const {
182 template <
typename propagator_state_t,
typename stepper_t,
typename result_t>
183 bool operator()(
const propagator_state_t&,
const stepper_t&,
184 const result_t&)
const {
188 template <
typename propagator_state_t,
typename stepper_t>
189 bool operator()(
const propagator_state_t&,
const stepper_t&)
const {
195 template <
typename propagator_state_t,
typename stepper_t>
196 bool operator()(
const propagator_state_t&,
const stepper_t&)
const {
202 template <
typename propagator_state_t,
typename stepper_t,
typename result_t>
203 bool operator()(
const propagator_state_t&,
const stepper_t&,
204 const result_t&)
const {
209 template <
typename P,
typename S,
typename... As>
211 detail::all_of_v<Concepts ::abort_condition_signature_check_v<As, P, S>...>;
217 static_assert(signature_check<P, S, AborterWithoutResult>,
"failed");
218 static_assert(signature_check<P, S, AborterWithResultA>,
"failed");
219 static_assert(signature_check<P, S, AborterWithResultB>,
"failed");
228 static_assert(!signature_check<P, S, AborterWithResultInvalid>,
"failed");
231 static_assert(!signature_check<P, S, AborterWithoutResultInvalid>,
"failed");