MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / reportTestResult

Function reportTestResult

tools/checker.php:91–102  ·  view source on GitHub ↗

Store results of tests for Ctest-Reporting */

($text, $user, $testname, $file, $result)

Source from the content-addressed store, hash-verified

89 Store results of tests for Ctest-Reporting
90*/
91function reportTestResult($text, $user, $testname, $file, $result) {
92 # check if we have the correct user
93 if ($user == "all" && $file != "")
94 {
95 $user = $GLOBALS["file_maintainers"][$file];
96 }
97 $reportAs = $file."_".$testname;
98 $GLOBALS["TestList"][$reportAs] = array();
99 $GLOBALS["TestList"][$reportAs]["message"] = $text;
100 $GLOBALS["TestList"][$reportAs]["result"] = $result;
101 $GLOBALS["TestList"][$reportAs]["user"] = $user;
102}
103
104function xmlentities($string) {
105 return str_replace(array("&", "<", ">", "\"", "'"), array("&amp;", "&lt;", "&gt;", "&quot;", "&apos;"), $string);

Callers 1

checker.phpFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected