9 #include <boost/test/unit_test.hpp>
16 namespace Experimental {
17 class IInternalStructureBuilder {};
21 BOOST_AUTO_TEST_SUITE(Experimental)
24 std::vector<Acts::ActsScalar> bValues = {0., 10., 100.};
27 std::vector<Acts::BinningValue> binning = {
Acts::binR};
28 auto root = std::make_unique<Acts::Experimental::Blueprint::Node>(
32 BOOST_CHECK(
root->isRoot());
33 BOOST_CHECK(
root->parent ==
nullptr);
34 BOOST_CHECK(
root->children.empty());
35 BOOST_CHECK(
root->name ==
"detector");
37 auto leaf0 = std::make_unique<Acts::Experimental::Blueprint::Node>(
40 BOOST_CHECK(leaf0->isLeaf());
42 auto branch = std::make_unique<Acts::Experimental::Blueprint::Node>(
46 auto leaf1 = std::make_unique<Acts::Experimental::Blueprint::Node>(
50 auto leaf2 = std::make_unique<Acts::Experimental::Blueprint::Node>(
53 std::make_shared<Acts::Experimental::IInternalStructureBuilder>());
56 auto* leaf0Ptr = leaf0.get();
57 auto* leaf1Ptr = leaf1.get();
58 auto* leaf2Ptr = leaf2.get();
59 auto* branchPtr = branch.get();
65 BOOST_CHECK(branch->children.size() == 2
u);
68 BOOST_CHECK(leaf1Ptr->parent == branchPtr);
69 BOOST_CHECK(leaf2Ptr->parent == branchPtr);
74 BOOST_CHECK(
root->isRoot());
76 BOOST_CHECK(branchPtr->parent ==
root.get());
81 BOOST_CHECK(leaf0Ptr->parent ==
root.get());
83 std::ofstream
fs(
"blueprint.dot");
88 BOOST_AUTO_TEST_SUITE_END()