MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / TEST

Function TEST

3rdparty/cppdap/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

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

Tested by

no test coverage detected