Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -121,29 +121,24 @@ UNIT_CLASS_TEST(TestWithClassificator, Complex_LoadHierachy)
LOG(LINFO, (tree));
TEST_EQUAL(tree_node::Size(tree), 7, ());
auto node = tree_node::FindIf(tree, [](auto const & e) {
return e.m_id == MakeId(13835058055284963881ull, 9223372037111861697ull);
});
auto node = tree_node::FindIf(
tree, [](auto const & e) { return e.m_id == MakeId(13835058055284963881ull, 9223372037111861697ull); });
TEST(node, ());
TEST(!node->HasParent(), ());
TEST_EQUAL(node->GetChildren().size(), 4, ());
node = tree_node::FindIf(tree, [](auto const & e) {
return e.m_id == MakeId(9223372036879747192ull, 9223372036879747192ull);
});
node = tree_node::FindIf(
tree, [](auto const & e) { return e.m_id == MakeId(9223372036879747192ull, 9223372036879747192ull); });
TEST(node, ());
TEST(node->HasParent(), ());
TEST_EQUAL(node->GetParent()->GetData().m_id,
MakeId(13835058055284963881ull, 9223372037111861697ull), ());
TEST_EQUAL(node->GetParent()->GetData().m_id, MakeId(13835058055284963881ull, 9223372037111861697ull), ());
TEST_EQUAL(node->GetChildren().size(), 2, ());
node = tree_node::FindIf(tree, [](auto const & e) {
return e.m_id == MakeId(9223372036938640141ull, 9223372036938640141ull);
});
node = tree_node::FindIf(
tree, [](auto const & e) { return e.m_id == MakeId(9223372036938640141ull, 9223372036938640141ull); });
TEST(node, ());
TEST_EQUAL(node->GetData().m_depth, tree_node::GetDepth(node), ());
TEST_EQUAL(node->GetParent()->GetData().m_id,
MakeId(9223372036879747192ull, 9223372036879747192ull), ());
TEST_EQUAL(node->GetParent()->GetData().m_id, MakeId(9223372036879747192ull, 9223372036879747192ull), ());
TEST_EQUAL(node->GetChildren().size(), 0, ());
}
} // namespace hierarchy_entry_tests