Changeset View
Changeset View
Standalone View
Standalone View
src/unit/ArcanistUnitTestResult.php
Context not available. | |||||
public function setName($name) { | public function setName($name) { | ||||
$maximum_bytes = 255; | $maximum_bytes = 255; | ||||
$actual_bytes = strlen($name); | $actual_bytes = @strlen($name); | ||||
if ($actual_bytes > $maximum_bytes) { | if ($actual_bytes > $maximum_bytes) { | ||||
throw new Exception( | throw new Exception( | ||||
Context not available. | |||||
$base = reset($coverage); | $base = reset($coverage); | ||||
foreach ($coverage as $more_coverage) { | foreach ($coverage as $more_coverage) { | ||||
$base_len = strlen($base); | $base_len = @strlen($base); | ||||
$more_len = strlen($more_coverage); | $more_len = @strlen($more_coverage); | ||||
$len = min($base_len, $more_len); | $len = min($base_len, $more_len); | ||||
for ($ii = 0; $ii < $len; $ii++) { | for ($ii = 0; $ii < $len; $ii++) { | ||||
Context not available. | |||||
// If a secondary report has more data, copy all of it over. | // If a secondary report has more data, copy all of it over. | ||||
if ($more_len > $base_len) { | if ($more_len > $base_len) { | ||||
$base .= substr($more_coverage, $base_len); | $base .= @substr($more_coverage, $base_len); | ||||
} | } | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0