MCPcopy Create free account
hub / github.com/ConorWilliams/libfork / check

Function check

test/source/algorithm/for_each.cpp:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42template <typename T>
43void check(T const &v, int k) {
44 for (int i = 0; auto &&elem : v) {
45 REQUIRE(elem == i++ + k);
46 }
47}
48
49template <typename Sch, typename F, typename Proj = std::identity>
50void test(Sch &&sch, F add_one, Proj proj = {}) {

Callers 1

testFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected