Apply clang-format to folly/experimental/symbolizer/
[folly.git] / folly / experimental / symbolizer / test / DwarfTests.cpp
index 36882d7c794e24b3a903d54b9abf97356a9e1844..bae2ce006f30cce85e3af2e78d330d9e80641d93 100644 (file)
@@ -31,11 +31,11 @@ void checkPath(
   Dwarf::Path path(rawBaseDir, rawSubDir, rawFile);
 
   CHECK_EQ(expectedBaseDir, path.baseDir())
-    << "Path(" << rawBaseDir << ", " << rawSubDir << ", " << rawFile << ")";
+      << "Path(" << rawBaseDir << ", " << rawSubDir << ", " << rawFile << ")";
   CHECK_EQ(expectedSubDir, path.subDir())
-    << "Path(" << rawBaseDir << ", " << rawSubDir << ", " << rawFile << ")";
+      << "Path(" << rawBaseDir << ", " << rawSubDir << ", " << rawFile << ")";
   CHECK_EQ(expectedFile, path.file())
-    << "Path(" << rawBaseDir << ", " << rawSubDir << ", " << rawFile << ")";
+      << "Path(" << rawBaseDir << ", " << rawSubDir << ", " << rawFile << ")";
 
   CHECK_EQ(expectedPath, path.toString());
 
@@ -47,52 +47,11 @@ void checkPath(
 }
 
 TEST(Dwarf, Path) {
+  checkPath("hello.cpp", "", "", "hello.cpp", "", "", "hello.cpp");
+  checkPath("foo/hello.cpp", "foo", "", "hello.cpp", "foo", "", "hello.cpp");
+  checkPath("foo/hello.cpp", "foo", "", "hello.cpp", "", "foo", "hello.cpp");
+  checkPath("hello.cpp", "", "", "hello.cpp", "./////", "./////", "hello.cpp");
+  checkPath("/hello.cpp", "/", "", "hello.cpp", "/////", "./////", "hello.cpp");
   checkPath(
-    "hello.cpp",
-    "",
-    "",
-    "hello.cpp",
-    "",
-    "",
-    "hello.cpp");
-  checkPath(
-    "foo/hello.cpp",
-    "foo",
-    "",
-    "hello.cpp",
-    "foo",
-    "",
-    "hello.cpp");
-  checkPath(
-    "foo/hello.cpp",
-    "foo",
-    "",
-    "hello.cpp",
-    "",
-    "foo",
-    "hello.cpp");
-  checkPath(
-    "hello.cpp",
-    "",
-    "",
-    "hello.cpp",
-    "./////",
-    "./////",
-    "hello.cpp");
-  checkPath(
-    "/hello.cpp",
-    "/",
-    "",
-    "hello.cpp",
-    "/////",
-    "./////",
-    "hello.cpp");
-  checkPath(
-    "/hello.cpp",
-    "/",
-    "",
-    "hello.cpp",
-    "/./././././././",
-    "",
-    "hello.cpp");
+      "/hello.cpp", "/", "", "hello.cpp", "/./././././././", "", "hello.cpp");
 }