mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-25 20:12:55 +00:00
4bcb64b01a
This patch mostly adds coverageIgnore comments for intendedly unreachable code etc. Some of them could be made testable by adding a new filter function (e.g. array cast), but this patch is meant to be comment-only (aside from the parser test). Ignoring coverage for these lines makes some methods reach 100% coverage, which in turn makes it easier to look at the coverage chart and identify at a glance which parts of the code *really* need to be covered. Bug: T201193 Change-Id: Ic30883f7d261d974a2be46308d023e2714119e95
14 lines
310 B
Perl
14 lines
310 B
Perl
(string(1) === "1") &
|
|
(int("1") === 1) &
|
|
(float(1) === 1.0) &
|
|
bool(1) & !bool(0) &
|
|
bool([]) === false &
|
|
bool( [false] ) === true &
|
|
bool( [1,2,3,4,5,6] ) === true &
|
|
float([]) === 0.0 &
|
|
float( [false] ) === 1.0 &
|
|
float( [1,2,3,4,5,6] ) === 6.0 &
|
|
int([]) === 0 &
|
|
int( [false] ) === 1 &
|
|
int( [1,2,3,4,5,6] ) === 6
|