schwern/test-more — Issue #197: Replace History->stream_depth() with History->in_test()
Author: schwern
Created: 2011-11-14 02:17:57+00:00
State: open
Labels: DO IT, Easy, History, Test-Builder2

`Test::Builder2::History->stream_depth()` is a vestige of an earlier half baked subtest design and is no longer needed.

Remove it, and the helper methods.

Replace it with the History attribute `in_test`. `in_test` is true if a `test_start` event has been seen but a `test_end` has not.

The following are errors, enforce them in History...

* Issuing a `test_start` while `in_test`.
* Issuing a `test_end` while not `in_test`.