CurryInfo: cpm-manage-3.0.0 / CPM.Package.HTML.getTestResults

definition: Info
 
getTestResults :: String -> IO (Maybe String)
getTestResults pkgid = do
  let testfile = "TEST" </> pkgid ++ ".csv"
  hastests <- doesFileExist testfile
  if hastests
    then do
      tinfos <- readCompleteFile testfile >>= return . readCSV
      case tinfos of
        [_, (_:ct:rc:_)] | rc == "0" -> return $ Just $
                                          "Succesfully tested at " ++ ct
        _                          -> return Nothing
    else return Nothing
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
Get some string describing a successful test.
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> _}
name: Info
 getTestResults
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> Prelude.IO (Prelude.Maybe String)
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term