MCPcopy Create free account
hub / github.com/AimRT/AimRT / TEST

Function TEST

src/interface/aimrt_module_cpp_interface/util/function_test.cc:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44};
45
46TEST(FUNCTION_TEST, base) {
47 Function<test_function_ops_1_t> f;
48 ASSERT_EQ(sizeof(f), 4 * sizeof(void*));
49 ASSERT_FALSE(f);
50
51 Function<test_function_ops_1_t> f2(nullptr);
52 ASSERT_FALSE(f);
53}
54
55TEST(FUNCTION_TEST, Lambda) {
56 Function<test_function_ops_2_t> f([](uint32_t in) { return in + 1; });

Callers

nothing calls this directly

Calls 1

NativeHandleMethod · 0.45

Tested by

no test coverage detected