Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Function to find expected results files for a specific root file, along with any parameter values identified by the root file.
Synopsis
- findExpectation :: CUBE -> [ParameterPattern] -> CandidateFile -> [CandidateFile] -> ([NamedParamMatch], CandidateFile) -> (Maybe (Sweets, SweetExplanation), IterStat)
- collateExpectations :: [Expectation] -> [Expectation]
Documentation
findExpectation :: CUBE -> [ParameterPattern] -> CandidateFile -> [CandidateFile] -> ([NamedParamMatch], CandidateFile) -> (Maybe (Sweets, SweetExplanation), IterStat) Source #
Finds the possible expected files matching the selected source. There will be either one or none.
collateExpectations :: [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.