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

Test.Tasty.Sugar.RootCheck

Description

Function and associated helpers to determine the matching root name. The root name may contain zero or more parameter values.

Synopsis

Documentation

rootMatch :: CandidateFile -> Separators -> [ParameterPattern] -> String -> Logic ([NamedParamMatch], CandidateFile, String) Source #

Determine which parts of the input name form the basePrefix and any parameter values for searching for related files (expected and associated). Parameter values are taken from subdirectory paths or filename elements (in that order).