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

Function test_result_method_ex

test/source/thread_sanitizer/result.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41 template<class type, class method_functor>
42 void test_result_method_ex(std::shared_ptr<thread_executor> te, method_functor&& tested_method, value_gen<type> converter) {
43 const auto tp = system_clock::now() + seconds(2);
44 auto results = result_gen<type>::make_exceptional_array(1024, tp, te, converter);
45
46 std::this_thread::sleep_until(tp);
47
48 test_exceptional_array(std::move(results), tested_method);
49 }
50} // namespace concurrencpp::tests
51
52namespace concurrencpp::tests {

Callers

nothing calls this directly

Calls 1

test_exceptional_arrayFunction · 0.85

Tested by

no test coverage detected