MCPcopy Create free account
hub / github.com/Naios/continuable / TEST

Function TEST

test/unit-test/multi/test-continuable-regression.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31using namespace cti::detail;
32
33TEST(regression_tests, are_multiple_args_mergeable) {
34 auto tp2 = std::tuple_cat(std::make_tuple(), std::make_tuple(1),
35 std::make_tuple(1, 2), std::make_tuple(1, 2, 3),
36 std::make_tuple(1, 2, 3, 4));
37
38 auto count = traits::unpack(
39 [](auto... args) {
40 std::vector<int> v{args...};
41 return std::accumulate(v.begin(), v.end(), 0);
42 },
43 tp2);
44 EXPECT_EQ(count, 20);
45}
46
47/// Recursive instantiation issue which affects Clang and GCC
48TEST(regression_tests, are_erasures_direct_chainable) {

Callers

nothing calls this directly

Calls 5

make_ready_continuableFunction · 0.85
thenMethod · 0.80
unpackFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected