MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / test_shared_result_array

Function test_shared_result_array

test/include/utils/test_ready_result.h:177–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175
176 template<class type, class consumer_type>
177 void test_shared_result_array(std::vector<shared_result<type>> results, consumer_type&& consumer, value_gen<type> converter) {
178 for (size_t i = 0; i < results.size(); i++) {
179 if constexpr (!std::is_same_v<void, type>) {
180 test_ready_result(consumer(std::move(results[i])), converter.value_of(i));
181 } else {
182 test_ready_result(consumer(std::move(results[i])));
183 }
184 }
185 }
186
187 template<class type, class consumer_type>
188 void test_shared_result_exceptional_array(std::vector<shared_result<type>> results, consumer_type&& consumer) {

Callers 1

Calls 3

test_ready_resultFunction · 0.85
sizeMethod · 0.45
value_ofMethod · 0.45

Tested by

no test coverage detected