Differential D12380 Diff 29771 src/applications/differential/conduit/DifferentialUpdateUnitResultsConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialUpdateUnitResultsConduitAPIMethod.php
<?php | <?php | ||||
final class DifferentialUpdateUnitResultsConduitAPIMethod | final class DifferentialUpdateUnitResultsConduitAPIMethod | ||||
extends DifferentialConduitAPIMethod { | extends DifferentialConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'differential.updateunitresults'; | return 'differential.updateunitresults'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return 'Update arc unit results for a postponed test.'; | return 'Update arc unit results for a postponed test.'; | ||||
} | } | ||||
public function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'diff_id' => 'required diff_id', | 'diff_id' => 'required diff_id', | ||||
'file' => 'required string', | 'file' => 'required string', | ||||
'name' => 'required string', | 'name' => 'required string', | ||||
'link' => 'optional string', | 'link' => 'optional string', | ||||
'result' => 'required string', | 'result' => 'required string', | ||||
'message' => 'required string', | 'message' => 'required string', | ||||
'coverage' => 'optional map<string, string>', | 'coverage' => 'optional map<string, string>', | ||||
); | ); | ||||
} | } | ||||
public function defineReturnType() { | protected function defineReturnType() { | ||||
return 'void'; | return 'void'; | ||||
} | } | ||||
public function defineErrorTypes() { | protected function defineErrorTypes() { | ||||
return array( | return array( | ||||
'ERR_BAD_DIFF' => 'Bad diff ID.', | 'ERR_BAD_DIFF' => 'Bad diff ID.', | ||||
'ERR_NO_RESULTS' => 'Could not find the postponed test', | 'ERR_NO_RESULTS' => 'Could not find the postponed test', | ||||
); | ); | ||||
} | } | ||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |