mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Fix a spelling mistake and tidy up whitespace
Summary: Self-explanatory. Test Plan: Eye-ball it. Reviewers: epriestley, chad, #blessed_reviewers Reviewed By: chad, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9705
This commit is contained in:
parent
108a4dc9e6
commit
439dff5e09
1 changed files with 20 additions and 35 deletions
|
@ -3,9 +3,7 @@
|
||||||
final class ArcanistBaseCommitParserTestCase extends ArcanistTestCase {
|
final class ArcanistBaseCommitParserTestCase extends ArcanistTestCase {
|
||||||
|
|
||||||
public function testBasics() {
|
public function testBasics() {
|
||||||
|
|
||||||
// Verify that the very basics of base commit resolution work.
|
// Verify that the very basics of base commit resolution work.
|
||||||
|
|
||||||
$this->assertCommit(
|
$this->assertCommit(
|
||||||
'Empty Rules',
|
'Empty Rules',
|
||||||
null,
|
null,
|
||||||
|
@ -21,11 +19,9 @@ final class ArcanistBaseCommitParserTestCase extends ArcanistTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testResolutionOrder() {
|
public function testResolutionOrder() {
|
||||||
|
|
||||||
// Rules should be resolved in order: args, local, project, global. These
|
// Rules should be resolved in order: args, local, project, global. These
|
||||||
// test cases intentionally scramble argument order to test that resolution
|
// test cases intentionally scramble argument order to test that resolution
|
||||||
// order is independent of argument order.
|
// order is independent of argument order.
|
||||||
|
|
||||||
$this->assertCommit(
|
$this->assertCommit(
|
||||||
'Order: Args',
|
'Order: Args',
|
||||||
'y',
|
'y',
|
||||||
|
@ -83,13 +79,10 @@ final class ArcanistBaseCommitParserTestCase extends ArcanistTestCase {
|
||||||
'project' => 'arc:args',
|
'project' => 'arc:args',
|
||||||
'user' => 'arc:halt',
|
'user' => 'arc:halt',
|
||||||
));
|
));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testHalt() {
|
public function testHalt() {
|
||||||
|
|
||||||
// 'arc:halt' should halt all processing.
|
// 'arc:halt' should halt all processing.
|
||||||
|
|
||||||
$this->assertCommit(
|
$this->assertCommit(
|
||||||
'Halt',
|
'Halt',
|
||||||
null,
|
null,
|
||||||
|
@ -100,9 +93,7 @@ final class ArcanistBaseCommitParserTestCase extends ArcanistTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testYield() {
|
public function testYield() {
|
||||||
|
|
||||||
// 'arc:yield' should yield to other rulesets.
|
// 'arc:yield' should yield to other rulesets.
|
||||||
|
|
||||||
$this->assertCommit(
|
$this->assertCommit(
|
||||||
'Yield',
|
'Yield',
|
||||||
'xyz',
|
'xyz',
|
||||||
|
@ -112,7 +103,6 @@ final class ArcanistBaseCommitParserTestCase extends ArcanistTestCase {
|
||||||
));
|
));
|
||||||
|
|
||||||
// This one should return to 'runtime' after exhausting 'local'.
|
// This one should return to 'runtime' after exhausting 'local'.
|
||||||
|
|
||||||
$this->assertCommit(
|
$this->assertCommit(
|
||||||
'Yield + Return',
|
'Yield + Return',
|
||||||
'abc',
|
'abc',
|
||||||
|
@ -123,9 +113,7 @@ final class ArcanistBaseCommitParserTestCase extends ArcanistTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testJump() {
|
public function testJump() {
|
||||||
|
|
||||||
// This should resolve to 'abc' without hitting any of the halts.
|
// This should resolve to 'abc' without hitting any of the halts.
|
||||||
|
|
||||||
$this->assertCommit(
|
$this->assertCommit(
|
||||||
'Jump',
|
'Jump',
|
||||||
'abc',
|
'abc',
|
||||||
|
@ -138,9 +126,7 @@ final class ArcanistBaseCommitParserTestCase extends ArcanistTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testJumpReturn() {
|
public function testJumpReturn() {
|
||||||
|
|
||||||
// After jumping to project, we should return to 'runtime'.
|
// After jumping to project, we should return to 'runtime'.
|
||||||
|
|
||||||
$this->assertCommit(
|
$this->assertCommit(
|
||||||
'Jump Return',
|
'Jump Return',
|
||||||
'xyz',
|
'xyz',
|
||||||
|
@ -158,9 +144,8 @@ final class ArcanistBaseCommitParserTestCase extends ArcanistTestCase {
|
||||||
$this->assertEqual($commit, $result, $desc);
|
$this->assertEqual($commit, $result, $desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private function buildParser() {
|
private function buildParser() {
|
||||||
// TODO: This is a little hacky beacuse we're using the Arcanist repository
|
// TODO: This is a little hacky because we're using the Arcanist repository
|
||||||
// itself to execute tests with, but it should be OK until we get proper
|
// itself to execute tests with, but it should be OK until we get proper
|
||||||
// isolation for repository-oriented test cases.
|
// isolation for repository-oriented test cases.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue