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 -> CandidateFile -> [CandidateFile] -> ([NamedParamMatch], CandidateFile, String) -> Maybe (Sweets, SweetExplanation)
- removeNonExplicitMatchingExpectations :: [Expectation] -> [Expectation]
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.