| Copyright | (c) John Maraist 2022 | 
|---|---|
| License | GPL3 | 
| Maintainer | haskell-tlt@maraist.org | 
| Stability | experimental | 
| Portability | POSIX | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Test.TLT.Buffer
Description
Buffer for accumulating test results in the TLT testing system.  See
TLT for more information.
Synopsis
- data TRBuf
- = Buf TRBuf Int Int String [TestResult]
 - | Top Int Int [TestResult]
 
 - addResult :: TRBuf -> TestResult -> TRBuf
 - currentGroup :: TRBuf -> TestResult
 - popGroup :: TRBuf -> TRBuf
 - closeTRBuf :: TRBuf -> [TestResult]
 
Documentation
Accumulator for test results, in the style of a simplified Huet's zipper which only ever adds to the end of the structure.
Constructors
| Buf TRBuf Int Int String [TestResult] | |
| Top Int Int [TestResult] | 
currentGroup :: TRBuf -> TestResult Source #
Convert the topmost group of a bottom-up TRBuf into a completed
 top-down report about the group.
popGroup :: TRBuf -> TRBuf Source #
Derive a new TRBuf corresponding to finishing the current group
 and continuing to accumulate results into its enclosure.
closeTRBuf :: TRBuf -> [TestResult] Source #
Convert a TRBuf into a list of top-down TestResults.