MCPcopy Create free account
hub / github.com/baidu/babylon / TEST

Function TEST

test/test_move_only_function.cpp:7–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using ::babylon::MoveOnlyFunction;
6
7TEST(move_only_function, default_construct_empty_function) {
8 MoveOnlyFunction<void(::std::string)> function;
9 ASSERT_FALSE(function);
10}
11
12TEST(move_only_function, construct_from_moveable_callable_only) {
13 typedef MoveOnlyFunction<void(::std::string)> MOF;

Callers

nothing calls this directly

Calls 1

SClass · 0.70

Tested by

no test coverage detected