MCPcopy Create free account
hub / github.com/Kitware/CMake / TEST

Function TEST

Utilities/cmcppdap/src/traits_test.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30} // namespace
31
32TEST(ParameterType, Function) {
33 F1({}); // Avoid unused method warning
34 F3(0, {}, 0); // Avoid unused method warning
35 static_assert(std::is_same<ParameterType<decltype(&F1), 0>, S>::value, "");
36 static_assert(std::is_same<ParameterType<decltype(&F3), 0>, int>::value, "");
37 static_assert(std::is_same<ParameterType<decltype(&F3), 1>, S>::value, "");
38 static_assert(std::is_same<ParameterType<decltype(&F3), 2>, float>::value,
39 "");
40}
41
42TEST(ParameterType, Method) {
43 class C {

Callers

nothing calls this directly

Calls 9

F1Function · 0.85
F3Function · 0.85
E1Function · 0.85
E3Function · 0.85
F1Method · 0.80
F3Method · 0.80
E1Method · 0.80
E3Method · 0.80
CClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…