MCPcopy Create free account
hub / github.com/Naios/function2 / TEST

Function TEST

test/noexcept-test.cpp:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17TEST(StrongNoExceptTests, GuaranteedNoExceptOperations) {
18 using type = fu2::function_base<true, true, fu2::capacity_fixed<100U>, true,
19 true, void()>;
20
21 EXPECT_TRUE(std::is_nothrow_destructible<type>::value);
22 EXPECT_TRUE(std::is_nothrow_move_assignable<type>::value);
23 EXPECT_TRUE(std::is_nothrow_move_constructible<type>::value);
24}
25
26// Issue #5
27// Death tests are causing issues when doing leak checks in valgrind

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected