diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-11-14 09:44:47 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-11-14 14:23:06 +0100 |
commit | 9c3d4539b820b34ca112dedbaf2ed5262c003ace (patch) | |
tree | f304adf8c9584bf434224620b91860502eb87e15 /test/buildtool/common | |
parent | 506ffd3bd96da9bac18f377822ca4f2954f75f71 (diff) | |
download | justbuild-9c3d4539b820b34ca112dedbaf2ed5262c003ace.tar.gz |
tests: Implement IWYU suggestions
Diffstat (limited to 'test/buildtool/common')
-rw-r--r-- | test/buildtool/common/TARGETS | 2 | ||||
-rw-r--r-- | test/buildtool/common/action_description.test.cpp | 8 | ||||
-rw-r--r-- | test/buildtool/common/artifact_description.test.cpp | 1 | ||||
-rw-r--r-- | test/buildtool/common/repository_config.test.cpp | 3 |
4 files changed, 10 insertions, 4 deletions
diff --git a/test/buildtool/common/TARGETS b/test/buildtool/common/TARGETS index 298f93eb..233d2135 100644 --- a/test/buildtool/common/TARGETS +++ b/test/buildtool/common/TARGETS @@ -25,7 +25,6 @@ , ["@", "src", "src/buildtool/common", "action_description"] , ["@", "src", "src/buildtool/common", "artifact_description"] , ["@", "src", "src/buildtool/common", "common"] - , ["@", "src", "src/buildtool/crypto", "hash_function"] , ["", "catch-main"] , ["utils", "test_hash_function_type"] ] @@ -43,7 +42,6 @@ , ["@", "src", "src/buildtool/execution_api/local", "local"] , ["@", "src", "src/buildtool/file_system", "file_root"] , ["@", "src", "src/buildtool/file_system", "file_system_manager"] - , ["@", "src", "src/buildtool/storage", "config"] , ["@", "src", "src/buildtool/storage", "storage"] , ["", "catch-main"] , ["utils", "test_storage_config"] diff --git a/test/buildtool/common/action_description.test.cpp b/test/buildtool/common/action_description.test.cpp index 65f5d92e..4d097436 100644 --- a/test/buildtool/common/action_description.test.cpp +++ b/test/buildtool/common/action_description.test.cpp @@ -15,12 +15,18 @@ #include "src/buildtool/common/action_description.hpp" #include <filesystem> +#include <functional> +#include <map> +#include <memory> +#include <optional> +#include <string> +#include <utility> +#include <vector> #include "catch2/catch_test_macros.hpp" #include "nlohmann/json.hpp" #include "src/buildtool/common/action.hpp" #include "src/buildtool/common/artifact_description.hpp" -#include "src/buildtool/crypto/hash_function.hpp" #include "test/utils/hermeticity/test_hash_function_type.hpp" TEST_CASE("From JSON", "[action_description]") { diff --git a/test/buildtool/common/artifact_description.test.cpp b/test/buildtool/common/artifact_description.test.cpp index 44acaae6..670b72ec 100644 --- a/test/buildtool/common/artifact_description.test.cpp +++ b/test/buildtool/common/artifact_description.test.cpp @@ -15,6 +15,7 @@ #include "src/buildtool/common/artifact_description.hpp" #include <filesystem> +#include <optional> #include <string> #include "catch2/catch_test_macros.hpp" diff --git a/test/buildtool/common/repository_config.test.cpp b/test/buildtool/common/repository_config.test.cpp index 6741b99f..8c1fd893 100644 --- a/test/buildtool/common/repository_config.test.cpp +++ b/test/buildtool/common/repository_config.test.cpp @@ -16,8 +16,10 @@ #include <atomic> #include <cstddef> +#include <cstdlib> #include <filesystem> #include <map> +#include <optional> #include <string> #include <unordered_map> #include <utility> // std::move @@ -28,7 +30,6 @@ #include "src/buildtool/common/artifact_digest.hpp" #include "src/buildtool/file_system/file_root.hpp" #include "src/buildtool/file_system/file_system_manager.hpp" -#include "src/buildtool/storage/config.hpp" #include "src/buildtool/storage/storage.hpp" #include "test/utils/hermeticity/test_storage_config.hpp" |