TLT-0.5.0.0: Testing in monads and transformers without explicit specs
Copyright(c) John Maraist 2022
LicenseGPL3
Maintainerhaskell-tlt@maraist.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.TLT.Buffer

Description

Buffer for accumulating test results in the TLT testing system. See TLT for more information.

Synopsis

Documentation

data TRBuf Source #

Accumulator for test results, in the style of a simplified Huet's zipper which only ever adds to the end of the structure.

addResult :: TRBuf -> TestResult -> TRBuf Source #

Add a single test result to a TRBuf.

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.