CORREC[T]: [T]ime
The last boundary condition in the CORRECT acronym is time. You need to keep several aspects of time in mind:
-
Relative time (ordering in time)
-
Absolute time (elapsed and wall clock)
-
Concurrency issues
Some interfaces are inherently stateful. You expect login() to be called before logout(), open() before read(), read() before close(), and so on.
Consider what happens if methods are called out of order. Try various alternate sequences. Try skipping the first, last, and middle of a sequence. Just as order of data matters (see the examples in C[O]RRECT: [O]rdering), the order of the calling sequence of methods matters.
Relative time might also include issues of timeouts. You must decide how long your code will wait for an ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access