From 13965393058ba8de3f49b0d057a67d10dc525032 Mon Sep 17 00:00:00 2001 From: AntonChern Date: Mon, 16 Oct 2023 19:08:28 +0300 Subject: [PATCH] Format test files --- src/tests/test_egfd_validation.cpp | 12 +++++++----- src/tests/test_gfd_validation.cpp | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/tests/test_egfd_validation.cpp b/src/tests/test_egfd_validation.cpp index 5b0747e480..8c1f93e35a 100644 --- a/src/tests/test_egfd_validation.cpp +++ b/src/tests/test_egfd_validation.cpp @@ -13,15 +13,17 @@ namespace { auto current_path = test_data_dir / "graph_data"; -std::unique_ptr CreateEGFDValidationInstance(std::filesystem::path const& graph_path, const std::vector& gfd_paths) { - StdParamsMap optionMap = {{config::names::kCsvPath, graph_path},{config::names::kGFDData, gfd_paths}}; +std::unique_ptr CreateEGFDValidationInstance( + std::filesystem::path const& graph_path, const std::vector& gfd_paths) { + StdParamsMap optionMap = {{config::names::kCsvPath, graph_path}, + {config::names::kGFDData, gfd_paths}}; return algos::CreateAndLoadAlgorithm(optionMap); } TEST(EGFDValidationTest, TestTrivially) { auto graph_path = current_path / "quadrangle.dot"; auto gfd_path = current_path / "quadrangle_gfd.dot"; - std::vector gfd_paths = { gfd_path }; + std::vector gfd_paths = {gfd_path}; auto algorithm = CreateEGFDValidationInstance(graph_path, gfd_paths); int expected_size = 1; algorithm->Execute(); @@ -32,7 +34,7 @@ TEST(EGFDValidationTest, TestTrivially) { TEST(EGFDValidationTest, TestExistingMatches) { auto graph_path = current_path / "directors.dot"; auto gfd_path = current_path / "directors_gfd.dot"; - std::vector gfd_paths = { gfd_path }; + std::vector gfd_paths = {gfd_path}; auto algorithm = CreateEGFDValidationInstance(graph_path, gfd_paths); int expected_size = 0; algorithm->Execute(); @@ -40,4 +42,4 @@ TEST(EGFDValidationTest, TestExistingMatches) { ASSERT_EQ(expected_size, GFDList.size()); } -} +} // namespace diff --git a/src/tests/test_gfd_validation.cpp b/src/tests/test_gfd_validation.cpp index df007083fb..2848b38896 100644 --- a/src/tests/test_gfd_validation.cpp +++ b/src/tests/test_gfd_validation.cpp @@ -13,15 +13,17 @@ namespace { auto current_path = test_data_dir / "graph_data"; -std::unique_ptr CreateGFDValidationInstance(std::filesystem::path const& graph_path, const std::vector& gfd_paths) { - StdParamsMap optionMap = {{config::names::kCsvPath, graph_path},{config::names::kGFDData, gfd_paths}}; +std::unique_ptr CreateGFDValidationInstance( + std::filesystem::path const& graph_path, const std::vector& gfd_paths) { + StdParamsMap optionMap = {{config::names::kCsvPath, graph_path}, + {config::names::kGFDData, gfd_paths}}; return algos::CreateAndLoadAlgorithm(optionMap); } TEST(GFDValidationTest, TestTrivially) { auto graph_path = current_path / "quadrangle.dot"; auto gfd_path = current_path / "quadrangle_gfd.dot"; - std::vector gfd_paths = { gfd_path }; + std::vector gfd_paths = {gfd_path}; auto algorithm = CreateGFDValidationInstance(graph_path, gfd_paths); int expected_size = 1; algorithm->Execute(); @@ -32,7 +34,7 @@ TEST(GFDValidationTest, TestTrivially) { TEST(GFDValidationTest, TestExistingMatches) { auto graph_path = current_path / "directors.dot"; auto gfd_path = current_path / "directors_gfd.dot"; - std::vector gfd_paths = { gfd_path }; + std::vector gfd_paths = {gfd_path}; auto algorithm = CreateGFDValidationInstance(graph_path, gfd_paths); int expected_size = 0; algorithm->Execute(); @@ -40,4 +42,4 @@ TEST(GFDValidationTest, TestExistingMatches) { ASSERT_EQ(expected_size, GFDList.size()); } -} +} // namespace