mirror of
https://github.com/google/googletest.git
synced 2025-12-07 01:06:50 +08:00
Update design_notes.md
This commit is contained in:
parent
50360d466a
commit
cc650a83b0
@ -1,6 +1,6 @@
|
|||||||
## Design Notes
|
## Design Notes
|
||||||
|
|
||||||
- A "corouine" is officially a class or factory object bound to a coro body.
|
- A "coroutine" is officially a class or factory object bound to a coro body.
|
||||||
It creates an RAII object, so an instance must be created and should be in
|
It creates an RAII object, so an instance must be created and should be in
|
||||||
a local scope (i.e. of the test case). Coroutines are implemented as lambdas
|
a local scope (i.e. of the test case). Coroutines are implemented as lambdas
|
||||||
because a lambda can be a C++20 coroutine, and we can capture the mock objects.
|
because a lambda can be a C++20 coroutine, and we can capture the mock objects.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user