From 992d939e3a5cca164bb4600c37f312a77976c456 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Thu, 5 Feb 2015 07:21:00 +1100 Subject: [PATCH] Remove the `ArcanistArcanistLinterTestCase` Summary: I don't think that this provides too much value. I think that we should rework this to be inferred from the `.arcconfig` file perhaps? Test Plan: `arc unit` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11662 --- src/__phutil_library_map__.php | 26 +++++++++---------- .../ArcanistArcanistLinterTestCase.php | 14 ---------- .../__tests__/ArcanistChmodLinterTestCase.php | 2 +- .../ArcanistCommitLinterTestCase.php | 3 +-- .../ArcanistFilenameLinterTestCase.php | 3 +-- .../ArcanistGeneratedLinterTestCase.php | 3 +-- .../__tests__/ArcanistJSONLinterTestCase.php | 2 +- .../ArcanistMergeConflictLinterTestCase.php | 3 +-- .../ArcanistNoLintLinterTestCase.php | 3 +-- .../ArcanistPhutilXHPASTLinterTestCase.php | 3 +-- .../ArcanistSpellingLinterTestCase.php | 3 +-- .../__tests__/ArcanistTextLinterTestCase.php | 2 +- .../ArcanistXHPASTLinterTestCase.php | 3 +-- .../__tests__/ArcanistXMLLinterTestCase.php | 2 +- 14 files changed, 24 insertions(+), 48 deletions(-) delete mode 100644 src/lint/linter/__tests__/ArcanistArcanistLinterTestCase.php diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 9af5eeb1..946f4a13 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -12,7 +12,6 @@ phutil_register_library_map(array( 'ArcanistAliasWorkflow' => 'workflow/ArcanistAliasWorkflow.php', 'ArcanistAmendWorkflow' => 'workflow/ArcanistAmendWorkflow.php', 'ArcanistAnoidWorkflow' => 'workflow/ArcanistAnoidWorkflow.php', - 'ArcanistArcanistLinterTestCase' => 'lint/linter/__tests__/ArcanistArcanistLinterTestCase.php', 'ArcanistBackoutWorkflow' => 'workflow/ArcanistBackoutWorkflow.php', 'ArcanistBaseCommitParser' => 'parser/ArcanistBaseCommitParser.php', 'ArcanistBaseCommitParserTestCase' => 'parser/__tests__/ArcanistBaseCommitParserTestCase.php', @@ -223,7 +222,6 @@ phutil_register_library_map(array( 'ArcanistAliasWorkflow' => 'ArcanistWorkflow', 'ArcanistAmendWorkflow' => 'ArcanistWorkflow', 'ArcanistAnoidWorkflow' => 'ArcanistWorkflow', - 'ArcanistArcanistLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistBackoutWorkflow' => 'ArcanistWorkflow', 'ArcanistBaseCommitParserTestCase' => 'ArcanistTestCase', 'ArcanistBaseUnitTestEngine' => 'ArcanistUnitTestEngine', @@ -241,7 +239,7 @@ phutil_register_library_map(array( 'ArcanistCapabilityNotSupportedException' => 'Exception', 'ArcanistCheckstyleXMLLintRenderer' => 'ArcanistLintRenderer', 'ArcanistChmodLinter' => 'ArcanistLinter', - 'ArcanistChmodLinterTestCase' => 'ArcanistArcanistLinterTestCase', + 'ArcanistChmodLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistCloseRevisionWorkflow' => 'ArcanistWorkflow', 'ArcanistCloseWorkflow' => 'ArcanistWorkflow', 'ArcanistClosureLinter' => 'ArcanistExternalLinter', @@ -250,7 +248,7 @@ phutil_register_library_map(array( 'ArcanistCoffeeLintLinterTestCase' => 'ArcanistExternalLinterTestCase', 'ArcanistCommentRemoverTestCase' => 'ArcanistTestCase', 'ArcanistCommitLinter' => 'ArcanistLinter', - 'ArcanistCommitLinterTestCase' => 'ArcanistArcanistLinterTestCase', + 'ArcanistCommitLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistCommitWorkflow' => 'ArcanistWorkflow', 'ArcanistCompilerLikeLintRenderer' => 'ArcanistLintRenderer', 'ArcanistConduitLinter' => 'ArcanistLinter', @@ -273,13 +271,13 @@ phutil_register_library_map(array( 'ArcanistExternalLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistFeatureWorkflow' => 'ArcanistWorkflow', 'ArcanistFilenameLinter' => 'ArcanistLinter', - 'ArcanistFilenameLinterTestCase' => 'ArcanistArcanistLinterTestCase', + 'ArcanistFilenameLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistFlagWorkflow' => 'ArcanistWorkflow', 'ArcanistFlake8Linter' => 'ArcanistExternalLinter', 'ArcanistFlake8LinterTestCase' => 'ArcanistExternalLinterTestCase', 'ArcanistFutureLinter' => 'ArcanistLinter', 'ArcanistGeneratedLinter' => 'ArcanistLinter', - 'ArcanistGeneratedLinterTestCase' => 'ArcanistArcanistLinterTestCase', + 'ArcanistGeneratedLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistGetConfigWorkflow' => 'ArcanistWorkflow', 'ArcanistGitAPI' => 'ArcanistRepositoryAPI', 'ArcanistGitHookPreReceiveWorkflow' => 'ArcanistWorkflow', @@ -299,7 +297,7 @@ phutil_register_library_map(array( 'ArcanistJSONLintLinterTestCase' => 'ArcanistExternalLinterTestCase', 'ArcanistJSONLintRenderer' => 'ArcanistLintRenderer', 'ArcanistJSONLinter' => 'ArcanistLinter', - 'ArcanistJSONLinterTestCase' => 'ArcanistArcanistLinterTestCase', + 'ArcanistJSONLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistJscsLinter' => 'ArcanistExternalLinter', 'ArcanistJscsLinterTestCase' => 'ArcanistExternalLinterTestCase', 'ArcanistLandWorkflow' => 'ArcanistWorkflow', @@ -314,12 +312,12 @@ phutil_register_library_map(array( 'ArcanistMercurialAPI' => 'ArcanistRepositoryAPI', 'ArcanistMercurialParserTestCase' => 'ArcanistTestCase', 'ArcanistMergeConflictLinter' => 'ArcanistLinter', - 'ArcanistMergeConflictLinterTestCase' => 'ArcanistArcanistLinterTestCase', + 'ArcanistMergeConflictLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistMissingLinterException' => 'Exception', 'ArcanistNoEffectException' => 'ArcanistUsageException', 'ArcanistNoEngineException' => 'ArcanistUsageException', 'ArcanistNoLintLinter' => 'ArcanistLinter', - 'ArcanistNoLintLinterTestCase' => 'ArcanistArcanistLinterTestCase', + 'ArcanistNoLintLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistNoneLintRenderer' => 'ArcanistLintRenderer', 'ArcanistPEP8Linter' => 'ArcanistExternalLinter', 'ArcanistPEP8LinterTestCase' => 'ArcanistExternalLinterTestCase', @@ -336,7 +334,7 @@ phutil_register_library_map(array( 'ArcanistPhutilTestSkippedException' => 'Exception', 'ArcanistPhutilTestTerminatedException' => 'Exception', 'ArcanistPhutilXHPASTLinter' => 'ArcanistBaseXHPASTLinter', - 'ArcanistPhutilXHPASTLinterTestCase' => 'ArcanistArcanistLinterTestCase', + 'ArcanistPhutilXHPASTLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistPuppetLintLinter' => 'ArcanistExternalLinter', 'ArcanistPuppetLintLinterTestCase' => 'ArcanistExternalLinterTestCase', 'ArcanistPyFlakesLinter' => 'ArcanistExternalLinter', @@ -353,7 +351,7 @@ phutil_register_library_map(array( 'ArcanistShellCompleteWorkflow' => 'ArcanistWorkflow', 'ArcanistSingleLintEngine' => 'ArcanistLintEngine', 'ArcanistSpellingLinter' => 'ArcanistLinter', - 'ArcanistSpellingLinterTestCase' => 'ArcanistArcanistLinterTestCase', + 'ArcanistSpellingLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistStartWorkflow' => 'ArcanistPhrequentWorkflow', 'ArcanistStopWorkflow' => 'ArcanistPhrequentWorkflow', 'ArcanistSubversionAPI' => 'ArcanistRepositoryAPI', @@ -363,7 +361,7 @@ phutil_register_library_map(array( 'ArcanistTasksWorkflow' => 'ArcanistWorkflow', 'ArcanistTestCase' => 'ArcanistPhutilTestCase', 'ArcanistTextLinter' => 'ArcanistLinter', - 'ArcanistTextLinterTestCase' => 'ArcanistArcanistLinterTestCase', + 'ArcanistTextLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistTimeWorkflow' => 'ArcanistPhrequentWorkflow', 'ArcanistTodoWorkflow' => 'ArcanistWorkflow', 'ArcanistUncommittedChangesException' => 'ArcanistUsageException', @@ -380,9 +378,9 @@ phutil_register_library_map(array( 'ArcanistXHPASTLintNamingHookTestCase' => 'ArcanistTestCase', 'ArcanistXHPASTLintTestSwitchHook' => 'ArcanistXHPASTLintSwitchHook', 'ArcanistXHPASTLinter' => 'ArcanistBaseXHPASTLinter', - 'ArcanistXHPASTLinterTestCase' => 'ArcanistArcanistLinterTestCase', + 'ArcanistXHPASTLinterTestCase' => 'ArcanistLinterTestCase', 'ArcanistXMLLinter' => 'ArcanistLinter', - 'ArcanistXMLLinterTestCase' => 'ArcanistArcanistLinterTestCase', + 'ArcanistXMLLinterTestCase' => 'ArcanistLinterTestCase', 'CSharpToolsTestEngine' => 'XUnitTestEngine', 'ComprehensiveLintEngine' => 'ArcanistLintEngine', 'NoseTestEngine' => 'ArcanistUnitTestEngine', diff --git a/src/lint/linter/__tests__/ArcanistArcanistLinterTestCase.php b/src/lint/linter/__tests__/ArcanistArcanistLinterTestCase.php deleted file mode 100644 index b34237b1..00000000 --- a/src/lint/linter/__tests__/ArcanistArcanistLinterTestCase.php +++ /dev/null @@ -1,14 +0,0 @@ -executeTestsInDirectory(dirname(__FILE__).'/chmod/'); diff --git a/src/lint/linter/__tests__/ArcanistCommitLinterTestCase.php b/src/lint/linter/__tests__/ArcanistCommitLinterTestCase.php index fc139a3f..e2a54c81 100644 --- a/src/lint/linter/__tests__/ArcanistCommitLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistCommitLinterTestCase.php @@ -1,7 +1,6 @@ executeTestsInDirectory(dirname(__FILE__).'/commit/'); diff --git a/src/lint/linter/__tests__/ArcanistFilenameLinterTestCase.php b/src/lint/linter/__tests__/ArcanistFilenameLinterTestCase.php index 7b439888..416d6cb3 100644 --- a/src/lint/linter/__tests__/ArcanistFilenameLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistFilenameLinterTestCase.php @@ -1,7 +1,6 @@ executeTestsInDirectory(dirname(__FILE__).'/filename/'); diff --git a/src/lint/linter/__tests__/ArcanistGeneratedLinterTestCase.php b/src/lint/linter/__tests__/ArcanistGeneratedLinterTestCase.php index 756e2c4a..e7b76b7f 100644 --- a/src/lint/linter/__tests__/ArcanistGeneratedLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistGeneratedLinterTestCase.php @@ -1,7 +1,6 @@ executeTestsInDirectory(dirname(__FILE__).'/generated/'); diff --git a/src/lint/linter/__tests__/ArcanistJSONLinterTestCase.php b/src/lint/linter/__tests__/ArcanistJSONLinterTestCase.php index 4d7eb53b..5f8c12d4 100644 --- a/src/lint/linter/__tests__/ArcanistJSONLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistJSONLinterTestCase.php @@ -1,6 +1,6 @@ executeTestsInDirectory(dirname(__FILE__).'/jsonlint/'); diff --git a/src/lint/linter/__tests__/ArcanistMergeConflictLinterTestCase.php b/src/lint/linter/__tests__/ArcanistMergeConflictLinterTestCase.php index 279ce78e..6982fbcd 100644 --- a/src/lint/linter/__tests__/ArcanistMergeConflictLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistMergeConflictLinterTestCase.php @@ -1,7 +1,6 @@ executeTestsInDirectory(dirname(__FILE__).'/mergeconflict/'); diff --git a/src/lint/linter/__tests__/ArcanistNoLintLinterTestCase.php b/src/lint/linter/__tests__/ArcanistNoLintLinterTestCase.php index fc015c6f..dab24b2d 100644 --- a/src/lint/linter/__tests__/ArcanistNoLintLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistNoLintLinterTestCase.php @@ -1,7 +1,6 @@ executeTestsInDirectory(dirname(__FILE__).'/nolint/'); diff --git a/src/lint/linter/__tests__/ArcanistPhutilXHPASTLinterTestCase.php b/src/lint/linter/__tests__/ArcanistPhutilXHPASTLinterTestCase.php index 1133e151..824b1b74 100644 --- a/src/lint/linter/__tests__/ArcanistPhutilXHPASTLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistPhutilXHPASTLinterTestCase.php @@ -1,7 +1,6 @@ executeTestsInDirectory(dirname(__FILE__).'/text/'); diff --git a/src/lint/linter/__tests__/ArcanistXHPASTLinterTestCase.php b/src/lint/linter/__tests__/ArcanistXHPASTLinterTestCase.php index 498083b6..bf6a3b63 100644 --- a/src/lint/linter/__tests__/ArcanistXHPASTLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistXHPASTLinterTestCase.php @@ -1,7 +1,6 @@ executeTestsInDirectory(dirname(__FILE__).'/xhpast/'); diff --git a/src/lint/linter/__tests__/ArcanistXMLLinterTestCase.php b/src/lint/linter/__tests__/ArcanistXMLLinterTestCase.php index 7b05c657..0843ea69 100644 --- a/src/lint/linter/__tests__/ArcanistXMLLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistXMLLinterTestCase.php @@ -4,7 +4,7 @@ * Test cases were mostly taken from * https://git.gnome.org/browse/libxml2/tree/test. */ -final class ArcanistXMLLinterTestCase extends ArcanistArcanistLinterTestCase { +final class ArcanistXMLLinterTestCase extends ArcanistLinterTestCase { public function testLinter() { $this->executeTestsInDirectory(dirname(__FILE__).'/xml/'); -- 2.43.0