clang-format: update with latest
Copy the latest clang-format and apply to the repository.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I10a3fe64d4ca77601e6855daf46954579312c7df
diff --git a/src/test/handler.cpp b/src/test/handler.cpp
index b7dfbb3..aad6c8a 100644
--- a/src/test/handler.cpp
+++ b/src/test/handler.cpp
@@ -80,9 +80,10 @@
}));
ASSERT_EQ(interfaceMaps.size(), 1);
- auto entry = std::find_if(
- interfaceMaps.begin(), interfaceMaps.end(),
- [](const auto& i) { return "test_object_path" == i.first; });
+ auto entry = std::find_if(interfaceMaps.begin(), interfaceMaps.end(),
+ [](const auto& i) {
+ return "test_object_path" == i.first;
+ });
ASSERT_NE(entry, interfaceMap.end());
for (const auto& [_, interfaces] : entry->second)
{
@@ -97,9 +98,10 @@
addObjectMapResult(interfaceMaps, "test_object_path",
std::pair<std::string, InterfaceNames>(
"test_object_connection_1", {"test_interface_2"}));
- entry = std::find_if(
- interfaceMaps.begin(), interfaceMaps.end(),
- [](const auto& i) { return "test_object_path" == i.first; });
+ entry = std::find_if(interfaceMaps.begin(), interfaceMaps.end(),
+ [](const auto& i) {
+ return "test_object_path" == i.first;
+ });
ASSERT_NE(entry, interfaceMaps.end());
for (const auto& [_, interfaces] : entry->second)
{
@@ -246,8 +248,8 @@
{
std::string path = "/test/object_path_0";
std::vector<std::string> interfaces = {"bad_interface"};
- std::vector<std::string> subtreePath =
- getSubTreePaths(interfaceMap, path, 0, interfaces);
+ std::vector<std::string> subtreePath = getSubTreePaths(interfaceMap, path,
+ 0, interfaces);
ASSERT_TRUE(subtreePath.empty());
path = "/invalid_path";
@@ -263,8 +265,8 @@
std::vector<std::string> interfaces = {"test_interface_1",
"test_interface_3"};
// Root
- std::vector<std::string> subtreePath =
- getSubTreePaths(interfaceMap, "/", 0, interfaces);
+ std::vector<std::string> subtreePath = getSubTreePaths(interfaceMap, "/", 0,
+ interfaces);
ASSERT_THAT(subtreePath,
ElementsAre("/test/object_path_0/child",
"/test/object_path_0/child/grandchild/dog"));
@@ -405,9 +407,9 @@
ASSERT_THAT(subtreePath, ElementsAre("/test/object_path_0/child"));
// Path1
- subtreePath =
- getAssociatedSubTreePaths(interfaceMap, associationMap,
- path1 / "descendent", path1, 0, interfaces);
+ subtreePath = getAssociatedSubTreePaths(interfaceMap, associationMap,
+ path1 / "descendent", path1, 0,
+ interfaces);
ASSERT_THAT(subtreePath,
ElementsAre("/test/object_path_0/child/grandchild"));
}