userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
unbreakable_cycle_test.cpp
1
#include <gtest/gtest.h>
2
3
#include <concepts>
4
5
#include <fmt/format.h>
6
#include <boost/pfr.hpp>
7
8
#include <
userver/proto-structs/unbreakable_dependency_cycle.hpp
>
9
10
#include <box/autobox/unbreakable_cycle.structs.usrv.pb.hpp>
11
12
USERVER_NAMESPACE_BEGIN
13
14
TEST(AutoboxUnbreakableCycle, SimpleCycle) {
15
namespace
ss = box::autobox::structs;
16
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
>);
19
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
>);
22
}
23
24
USERVER_NAMESPACE_END
proto-structs
codegen-tests
src
box
autobox
unbreakable_cycle_test.cpp
Generated on
for userver by
Doxygen
1.17.0