A pool of previously generated values, for stateful tests.
Create one per test case with new Pool(tc) (typically in the test body,
alongside the initial state) and populate it with add. To draw from
the pool, pass the generators it hands out to TestCase.draw:
valuesReusable yields a value in the pool without removing it.
valuesConsumed removes the value it yields from the pool.
Drawing from an empty pool rejects the current step, as if by
tc.assume(false).
A pool of previously generated values, for stateful tests.
Create one per test case with
new Pool(tc)(typically in the test body, alongside the initial state) and populate it with add. To draw from the pool, pass the generators it hands out to TestCase.draw:Drawing from an empty pool rejects the current step, as if by
tc.assume(false).Example