forked from boostorg/beast
Better test::enable_yield_to
This commit is contained in:
1 parent
aca14f6b2b
commit
f62ac819f5
6 files changed
+57
-46
No files matched your search
@@ -132,7 +132,8 @@ public:
|
||||
{
|
||||
testSpecialMembers();
|
||||
|
||||
yield_to(&self::testRead, this);
|
||||
yield_to([&](yield_context yield){
|
||||
testRead(yield);});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+6
-3
@@ -319,9 +319,12 @@ public:
|
||||
{
|
||||
testThrow();
|
||||
|
||||
yield_to(&read_test::testFailures, this);
|
||||
yield_to(&read_test::testRead, this);
|
||||
yield_to(&read_test::testEof, this);
|
||||
yield_to([&](yield_context yield){
|
||||
testFailures(yield); });
|
||||
yield_to([&](yield_context yield){
|
||||
testRead(yield); });
|
||||
yield_to([&](yield_context yield){
|
||||
testEof(yield); });
|
||||
|
||||
testIoService();
|
||||
}
|
||||
|
||||
+6
-3
@@ -666,9 +666,12 @@ public:
|
||||
|
||||
void run() override
|
||||
{
|
||||
yield_to(&write_test::testAsyncWriteHeaders, this);
|
||||
yield_to(&write_test::testAsyncWrite, this);
|
||||
yield_to(&write_test::testFailures, this);
|
||||
yield_to([&](yield_context yield){
|
||||
testAsyncWriteHeaders(yield); });
|
||||
yield_to([&](yield_context yield){
|
||||
testAsyncWrite(yield); });
|
||||
yield_to([&](yield_context yield){
|
||||
testFailures(yield); });
|
||||
testOutput();
|
||||
test_std_ostream();
|
||||
testOstream();
|
||||
|
||||
Reference in new issue
Block a user