MCPcopy Create free account
hub / github.com/catchorg/Catch2 / templated_tests

Function templated_tests

tests/SelfTest/UsageTests/Compilation.tests.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62template<typename T>
63bool templated_tests(T t) {
64 int a = 3;
65 REQUIRE(a == t);
66 CHECK(a == t);
67 REQUIRE_THROWS(throws_int(true));
68 CHECK_THROWS_AS(throws_int(true), int);
69 REQUIRE_NOTHROW(throws_int(false));
70 REQUIRE_THAT("aaa", Catch::Matchers::EndsWith("aaa"));
71 return true;
72}
73
74struct A {};
75

Callers

nothing calls this directly

Calls 2

throws_intFunction · 0.85
EndsWithFunction · 0.50

Tested by

no test coverage detected