From 7a05bb5cfbf3560b828c226f4a3bad8c3826b039 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 23 Mar 2022 18:47:42 +0100 Subject: Apply changes suggested by clang-tidy 11 --- test/buildtool/execution_api/local/local_api.test.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/buildtool/execution_api/local/local_api.test.cpp') diff --git a/test/buildtool/execution_api/local/local_api.test.cpp b/test/buildtool/execution_api/local/local_api.test.cpp index 7ffd65fd..22563084 100644 --- a/test/buildtool/execution_api/local/local_api.test.cpp +++ b/test/buildtool/execution_api/local/local_api.test.cpp @@ -8,43 +8,43 @@ namespace { -auto api_factory = []() { return IExecutionApi::Ptr{new LocalApi()}; }; +auto const kApiFactory = []() { return IExecutionApi::Ptr{new LocalApi()}; }; } // namespace TEST_CASE_METHOD(HermeticLocalTestFixture, "LocalAPI: No input, no output", "[execution_api]") { - TestNoInputNoOutput(api_factory, {}, /*is_hermetic=*/true); + TestNoInputNoOutput(kApiFactory, {}, /*is_hermetic=*/true); } TEST_CASE_METHOD(HermeticLocalTestFixture, "LocalAPI: No input, create output", "[execution_api]") { - TestNoInputCreateOutput(api_factory, {}, /*is_hermetic=*/true); + TestNoInputCreateOutput(kApiFactory, {}, /*is_hermetic=*/true); } TEST_CASE_METHOD(HermeticLocalTestFixture, "LocalAPI: One input copied to output", "[execution_api]") { - TestOneInputCopiedToOutput(api_factory, {}, /*is_hermetic=*/true); + TestOneInputCopiedToOutput(kApiFactory, {}, /*is_hermetic=*/true); } TEST_CASE_METHOD(HermeticLocalTestFixture, "LocalAPI: Non-zero exit code, create output", "[execution_api]") { - TestNonZeroExitCodeCreateOutput(api_factory, {}); + TestNonZeroExitCodeCreateOutput(kApiFactory, {}); } TEST_CASE_METHOD(HermeticLocalTestFixture, "LocalAPI: Retrieve two identical trees to path", "[execution_api]") { TestRetrieveTwoIdenticalTreesToPath( - api_factory, {}, "local", /*is_hermetic=*/true); + kApiFactory, {}, "local", /*is_hermetic=*/true); } TEST_CASE_METHOD(HermeticLocalTestFixture, "LocalAPI: Create directory prior to execution", "[execution_api]") { - TestCreateDirPriorToExecution(api_factory, {}, /*is_hermetic=*/true); + TestCreateDirPriorToExecution(kApiFactory, {}, /*is_hermetic=*/true); } -- cgit v1.2.3