Page MenuHomePhabricator
Diviner Arcanist Tech Docs ArcanistUnitTestResult

final class ArcanistUnitTestResult
Arcanist Technical Documentation (Unit Testing)

Represents the outcome of running a unit test.

Methods

public function setNamespace($namespace)

This method is not documented.
Parameters
$namespace
Return
wild

public function getNamespace()

This method is not documented.
Return
wild

public function setName($name)

This method is not documented.
Parameters
$name
Return
wild

public function getName()

This method is not documented.
Return
wild

public function setLink($link)

This method is not documented.
Parameters
$link
Return
wild

public function getLink()

This method is not documented.
Return
wild

public function setResult($result)

This method is not documented.
Parameters
$result
Return
wild

public function getResult()

This method is not documented.
Return
wild

public function setDuration($duration)

Set the number of seconds spent executing this test.

Reporting this information can help users identify slow tests and reduce the total cost of running a test suite.

Callers should pass an integer or a float. For example, pass 3 for 3 seconds, or 0.125 for 125 milliseconds.

Parameters
int|float$durationDuration, in seconds.
Return
this

public function getDuration()

This method is not documented.
Return
wild

public function setUserData($user_data)

This method is not documented.
Parameters
$user_data
Return
wild

public function getUserData()

This method is not documented.
Return
wild

public function setExtraData($extra_data)

"extra data" allows an implementation to store additional key/value metadata along with the result of the test run.

Parameters
array$extra_data
Return
wild

public function getExtraData()

This method is not documented.
Return
wild

public function setCoverage($coverage)

This method is not documented.
Parameters
$coverage
Return
wild

public function getCoverage()

This method is not documented.
Return
wild

public static function mergeCoverage($coverage)

Merge several coverage reports into a comprehensive coverage report.

Parameters
list$coverageList of coverage report strings.
Return
stringCumulative coverage report.

public function toDictionary()

This method is not documented.
Return
wild

public static function getAllResultCodes()

This method is not documented.
Return
wild

public static function getResultCodeName($result_code)

This method is not documented.
Parameters
$result_code
Return
wild

public static function getResultCodeDescription($result_code)

This method is not documented.
Parameters
$result_code
Return
wild

private static function getResultCodeSpec($result_code)

This method is not documented.
Parameters
$result_code
Return
wild

private static function getResultCodeSpecs()

This method is not documented.
Return
wild