Add comment to test-only functions in production code

Change-Id: I996f88012e8d61042c5bcd9cd72030e3020b3fa9
This commit is contained in:
Umherirrender 2021-08-17 21:15:15 +02:00
parent 4d8c21e2fb
commit 8926ae43bd
3 changed files with 15 additions and 2 deletions

View file

@ -1123,7 +1123,7 @@ abstract class LanguageConverter implements ILanguageConverter {
*
* Also used by test suites which need to reset the converter state.
*
* @private
* Called by ParserTestRunner with the help of TestingAccessWrapper
*/
private function reloadTables() {
if ( $this->mTables ) {

View file

@ -151,7 +151,7 @@ class TrivialLanguageConverter implements ILanguageConverter {
/**
* Used by test suites which need to reset the converter state.
*
* @private
* Called by ParserTestRunner with the help of TestingAccessWrapper
*/
private function reloadTables() {
}

View file

@ -6155,6 +6155,9 @@ class Parser {
/**
* Strip/replaceVariables/unstrip for preprocessor regression testing
*
* Called in preprocessorFuzzTest.php maintenance script
* with the help of TestingAccessWrapper to hide it from the public interface
*
* @param string $text
* @param PageReference $page
* @param ParserOptions $options
@ -6175,6 +6178,11 @@ class Parser {
}
/**
* Strip/replaceVariables/unstrip for preprocessor regression testing
*
* Called in preprocessorFuzzTest.php maintenance script
* with the help of TestingAccessWrapper to hide it from the public interface
*
* @param string $text
* @param PageReference $page
* @param ParserOptions $options
@ -6185,6 +6193,11 @@ class Parser {
}
/**
* Strip/replaceVariables/unstrip for preprocessor regression testing
*
* Called in preprocessorFuzzTest.php maintenance script
* with the help of TestingAccessWrapper to hide it from the public interface
*
* @param string $text
* @param PageReference $page
* @param ParserOptions $options