forked from boostorg/beast
Add move-only handler tests
This commit is contained in:
@@ -622,12 +622,21 @@ public:
|
||||
asio_handler_is_continuation(&op);
|
||||
}
|
||||
|
||||
void
|
||||
testMoveOnly()
|
||||
{
|
||||
boost::asio::io_context ioc;
|
||||
stream<test::stream> ws{ioc};
|
||||
ws.async_close({}, move_only_handler{});
|
||||
}
|
||||
|
||||
void
|
||||
run() override
|
||||
{
|
||||
testClose();
|
||||
testSuspend();
|
||||
testContHook();
|
||||
testMoveOnly();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user