Exclude old, single-use scripts from coverage reports

These scripts were already included in the updater (and hence executed)
several MW versions ago. There's no need to write tests for them right
now, so exclude these from coverage.

Change-Id: I43e46f06b98bb3b9b9d61a45baaf232e2a99c308
This commit is contained in:
Daimona Eaytoy 2020-09-30 12:42:34 +02:00
parent c5a1ab7899
commit 97afa97403
3 changed files with 7 additions and 0 deletions

View file

@ -11,6 +11,8 @@ use MediaWiki\MediaWikiServices;
/**
* Adds rows missing per T54919
* @codeCoverageIgnore
* No need to cover: old, single-use script.
*/
class AddMissingLoggingEntries extends LoggedUpdateMaintenance {
public function __construct() {

View file

@ -13,6 +13,9 @@ require_once "$IP/maintenance/Maintenance.php";
* and T228655.
* It also fixes a problem which caused addMissingLoggingEntries to insert duplicate rows foreach
* non-legacy entries
*
* @codeCoverageIgnore
* No need to cover: old, single-use script.
*/
class FixOldLogEntries extends LoggedUpdateMaintenance {
/** @var bool */

View file

@ -27,6 +27,8 @@ require_once "$IP/maintenance/Maintenance.php";
/**
* Normalizes throttle parameters, see T203587
* @codeCoverageIgnore
* No need to cover: old, single-use script.
*/
class NormalizeThrottleParameters extends LoggedUpdateMaintenance {
public function __construct() {