From 9f5579dbe9f1a5068a8c10821fe06c202602d4ae Mon Sep 17 00:00:00 2001 From: abeaucha Date: Thu, 3 Oct 2024 13:25:52 -0400 Subject: [PATCH] clang-format --- .../six.sidd/unittests/test_valid_sixsidd.cpp | 47 ++++++++++--------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/six/modules/c++/six.sidd/unittests/test_valid_sixsidd.cpp b/six/modules/c++/six.sidd/unittests/test_valid_sixsidd.cpp index f84ebdb3c..434fbaeae 100644 --- a/six/modules/c++/six.sidd/unittests/test_valid_sixsidd.cpp +++ b/six/modules/c++/six.sidd/unittests/test_valid_sixsidd.cpp @@ -198,17 +198,22 @@ TEST_CASE(test_read_sidd300_v13_xml) test_read_sidd_xml(testName, "sidd300_ISM-v13.xml"); } -// Set SIX_PROFILE_PARSING=N when running the test to profile the tests by re-running N-times -#define PROFILE(X) six::testing::EnvProfiler("SIX_PROFILE_PARSING", testName, std::cerr)([&](){X;}); +// Set SIX_PROFILE_PARSING=N when running the test to profile the tests by +// re-running N-times +#define PROFILE(X) \ + six::testing::EnvProfiler("SIX_PROFILE_PARSING", testName, std::cerr)( \ + [&]() { X; }); // Set SIX_PROFILE_STACKSIZE=1 when running to log the size of the stacktrace -#define SSPROFILE(X, Y) TEST_SPECIFIC_EXCEPTION( \ - six::testing::StackTraceSizeEnvProfiler( \ - "SIX_PROFILE_STACKSIZE", testName, std::cerr)([&](){X;}), Y) +#define SSPROFILE(X, Y) \ + TEST_SPECIFIC_EXCEPTION(six::testing::StackTraceSizeEnvProfiler( \ + "SIX_PROFILE_STACKSIZE", \ + testName, \ + std::cerr)([&]() { X; }), \ + Y) #define TEST_BAD_XML(X) PROFILE(SSPROFILE(X, six::DESValidationException)); - TEST_CASE(test_read_sidd100_bad_xml) { const auto schemaPaths = getSchemaPaths(); @@ -230,18 +235,18 @@ TEST_CASE(test_read_sidd300_bad_xml) TEST_CASE(test_read_sidd300_v13_bad_xml) { const auto schemaPaths = getSchemaPaths(); - TEST_BAD_XML(test_read_sidd_xml(testName, "sidd300_ISM-v13-bad.xml", &schemaPaths)); -} - -TEST_MAIN( - TEST_CHECK(test_createFakeDerivedData); - TEST_CHECK(test_createFakeDerivedData_validate); - TEST_CHECK(test_read_sidd200_no_LUT); - TEST_CHECK(test_read_sidd200_xml); - TEST_CHECK(test_read_sidd300_xml); - TEST_CHECK(test_read_sidd300_v13_xml); - TEST_CHECK(test_read_sidd100_bad_xml); - TEST_CHECK(test_read_sidd200_bad_xml); - TEST_CHECK(test_read_sidd300_bad_xml); - TEST_CHECK(test_read_sidd300_v13_bad_xml); - ) + TEST_BAD_XML(test_read_sidd_xml(testName, + "sidd300_ISM-v13-bad.xml", + &schemaPaths)); +} + +TEST_MAIN(TEST_CHECK(test_createFakeDerivedData); + TEST_CHECK(test_createFakeDerivedData_validate); + TEST_CHECK(test_read_sidd200_no_LUT); + TEST_CHECK(test_read_sidd200_xml); + TEST_CHECK(test_read_sidd300_xml); + TEST_CHECK(test_read_sidd300_v13_xml); + TEST_CHECK(test_read_sidd100_bad_xml); + TEST_CHECK(test_read_sidd200_bad_xml); + TEST_CHECK(test_read_sidd300_bad_xml); + TEST_CHECK(test_read_sidd300_v13_bad_xml);)