tasty-sugar-1.3.0.2: Tests defined by Search Using Golden Answer References
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Tasty.Sugar.ExpectCheck

Description

Function to find expected results files for a specific root file, along with any parameter values identified by the root file.

Synopsis

Documentation

findExpectation :: CUBE -> CandidateFile -> [CandidateFile] -> ([NamedParamMatch], CandidateFile, String) -> Maybe (Sweets, SweetExplanation) Source #

Finds the possible expected files matching the selected source. There will be either one or none.

removeNonExplicitMatchingExpectations :: [Expectation] -> [Expectation] Source #

Determines the best Expectations to use from a list of Expectations that may have different parameter match status against an expected file. When two Expectations differ only in an Explicit v.s. Assumed (or wildcard) the Explicit is preferred. Expectations with more parameter matches are preferred over those with less.