summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_engine/executor
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-05-24 16:34:19 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-05-28 16:19:19 +0200
commita0c2017551a5a1a9de2319d11954587bd35da773 (patch)
treefea4cb80187fd26495a3fd8f1cd0fd802ac72e8b /test/buildtool/execution_engine/executor
parentc74f873fc16b2c1221a259a4dba1eff168eb7436 (diff)
downloadjustbuild-a0c2017551a5a1a9de2319d11954587bd35da773.tar.gz
Use TransformedRange in BlobContainer
...instead of various iterators.
Diffstat (limited to 'test/buildtool/execution_engine/executor')
-rw-r--r--test/buildtool/execution_engine/executor/executor.test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/buildtool/execution_engine/executor/executor.test.cpp b/test/buildtool/execution_engine/executor/executor.test.cpp
index 790e20ca..02836d07 100644
--- a/test/buildtool/execution_engine/executor/executor.test.cpp
+++ b/test/buildtool/execution_engine/executor/executor.test.cpp
@@ -176,8 +176,9 @@ class TestApi : public IExecutionApi {
}
auto Upload(BlobContainer const& blobs, bool /*unused*/) noexcept
-> bool final {
+ auto blob_range = blobs.Blobs();
return std::all_of(
- blobs.begin(), blobs.end(), [this](auto const& blob) {
+ blob_range.begin(), blob_range.end(), [this](auto const& blob) {
return config_.artifacts[blob.data]
.uploads // for local artifacts
or config_.artifacts[blob.digest.hash()]