mirror of
https://github.com/google/googletest.git
synced 2025-12-06 16:57:00 +08:00
28 lines
2.0 KiB
Markdown
28 lines
2.0 KiB
Markdown
# Testing With Two Computers
|
|
_This is a simplified overview of conventional and coroutine-based unit testing. We explore the steps taken by a convnetional test and then present the same test in a coroutine model. We use an analogy with computers that can "only do one thing at a time" and then discuss how coroutines fit in at the end._
|
|
## Conventional testing, using one computer
|
|
For this exercise, we will assume that the computers illustrated can only run a single "program" at a time (but see [footnote](#Footnote)).
|
|

|
|
Text after
|
|

|
|
Text after
|
|

|
|
Text after
|
|

|
|
Text after
|
|

|
|
## The same test, using two computers
|
|

|
|
Text after
|
|

|
|
Text after
|
|

|
|
Text after
|
|

|
|
Text after
|
|
## How do we get to coroutines
|
|
## Footnote
|
|
The machine shown is a PDP-11/35 minicomputer system which does in fact support timesharing. You would not need two of them to run cotest!
|
|
|
|
|