diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-03-23 18:47:42 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-03-23 20:07:51 +0100 |
commit | 7a05bb5cfbf3560b828c226f4a3bad8c3826b039 (patch) | |
tree | ed77169173b89492869c787533f27d0bfb95480f /test/buildtool/execution_api/local/local_api.test.cpp | |
parent | 45cba2778426601bdffbcfe6aa7310aee76a6e54 (diff) | |
download | justbuild-7a05bb5cfbf3560b828c226f4a3bad8c3826b039.tar.gz |
Apply changes suggested by clang-tidy 11
Diffstat (limited to 'test/buildtool/execution_api/local/local_api.test.cpp')
-rw-r--r-- | test/buildtool/execution_api/local/local_api.test.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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); } |