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 __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

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