1#include <gtest/gtest.h>
6#include <boost/pfr.hpp>
8#include <userver/proto-structs/unbreakable_dependency_cycle.hpp>
10#include <box/autobox/unbreakable_cycle.structs.usrv.pb.hpp>
12USERVER_NAMESPACE_BEGIN
14TEST(AutoboxUnbreakableCycle, SimpleCycle) {
15 namespace ss = box::autobox::structs;
17 static_assert(boost::pfr::tuple_size<ss::UnbreakableCycle::A>() == 1);
18 static_assert(std::same_as<
decltype(ss::UnbreakableCycle::A::b), proto_structs::UnbreakableDependencyCycle>);
20 static_assert(boost::pfr::tuple_size<ss::UnbreakableCycle::B>() == 1);
21 static_assert(std::same_as<
decltype(ss::UnbreakableCycle::B::a), proto_structs::UnbreakableDependencyCycle>);