mediawiki-extensions-AbuseF.../tests/parserTests
Daimona Eaytoy 4f3b020f5d Improve code coverage for AbuseFilterParser
Add some tests and improve others to raise coverage percentage. This
should lead to almost 100% for the AbuseFilterParser class. Aside from
this, a couple of changes:
* Remove an unused function
* Let equals_to_any return a genuine result with empty strings
* Remove an if which will never be true in skipOverBraces, since the
function is called after checking the same conditions.

Bug: T201193
Change-Id: I7020b2ed996236c38c5784d161ad98ec44163406
2018-08-20 14:38:40 +02:00
..
almost-empty.r Implement a tree-caching abuse filter parser 2016-09-24 02:53:26 +00:00
almost-empty.t Implement a tree-caching abuse filter parser 2016-09-24 02:53:26 +00:00
arith.r
arith.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
array-assignment.r Rename lists to arrays 2018-06-26 14:42:23 +02:00
array-assignment.t Rename lists to arrays 2018-06-26 14:42:23 +02:00
array-comparisons.r Rename lists to arrays 2018-06-26 14:42:23 +02:00
array-comparisons.t Rename lists to arrays 2018-06-26 14:42:23 +02:00
arrays.r
arrays.t
atombraces.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
atombraces.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
bool-assoc.r Fix the associativity of boolean logic operators 2016-11-06 20:30:07 -05:00
bool-assoc.t Fix the associativity of boolean logic operators 2016-11-06 20:30:07 -05:00
bug25373.r
bug25373.t
cast.r
cast.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
ccnorm-contains-all.r Add contains_all and ccnorm_contains_all functions 2018-02-09 17:33:24 +01:00
ccnorm-contains-all.t Add contains_all and ccnorm_contains_all functions 2018-02-09 17:33:24 +01:00
ccnorm-contains-any.r Add ccnorm_contains_any function 2017-10-06 11:32:45 -04:00
ccnorm-contains-any.t Add ccnorm_contains_any function 2017-10-06 11:32:45 -04:00
ccnorm.r
ccnorm.t Update tests for AntiSpoof fixes 2016-08-13 20:37:43 +00:00
comment.r
comment.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
contains-all.r Add contains_all and ccnorm_contains_all functions 2018-02-09 17:33:24 +01:00
contains-all.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
contains-any.r Add ccnorm_contains_any function 2017-10-06 11:32:45 -04:00
contains-any.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
contains.r Reinforce parser tests 2018-04-09 16:25:54 +02:00
contains.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
containsfunction.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
containsfunction.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
count.r
count.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
empty.r Implement a tree-caching abuse filter parser 2016-09-24 02:53:26 +00:00
empty.t Implement a tree-caching abuse filter parser 2016-09-24 02:53:26 +00:00
eq.r
eq.t
equals-to-any.r Add equals_to_any function 2018-04-25 23:12:19 +00:00
equals-to-any.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
expn.r Add test coverage for more bizzare features of the filter parser 2016-08-21 18:45:22 -04:00
expn.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
float.r
float.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
get-matches.r Reinforce parser tests 2018-04-09 16:25:54 +02:00
get-matches.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
ifthen.r
ifthen.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
in.r
in.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
lazyboolinvert.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazyboolinvert.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazyfunction.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazyfunction.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazykeyword.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazykeyword.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazypow.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazypow.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazysum.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazysum.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazyunarys.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lazyunarys.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
lcase.r
lcase.t
length.r
length.t
like.r
like.t
multipleskipbraces.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
multipleskipbraces.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
mwexamples-arithmetic.r Reinforce parser tests 2018-04-09 16:25:54 +02:00
mwexamples-arithmetic.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
mwexamples-arrays.r Rename lists to arrays 2018-06-26 14:42:23 +02:00
mwexamples-arrays.t Rename lists to arrays 2018-06-26 14:42:23 +02:00
mwexamples-bools.r Reinforce parser tests 2018-04-09 16:25:54 +02:00
mwexamples-bools.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
mwexamples-comparisons.r Reinforce parser tests 2018-04-09 16:25:54 +02:00
mwexamples-comparisons.t Sync parser tests with examples on mediawiki 2018-04-26 18:47:51 +02:00
mwexamples-functions.r Reinforce parser tests 2018-04-09 16:25:54 +02:00
mwexamples-functions.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
mwexamples-keywords.r Reinforce parser tests 2018-04-09 16:25:54 +02:00
mwexamples-keywords.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
norm.r
norm.t Update tests for AntiSpoof fixes 2016-08-13 20:37:43 +00:00
numbers.r
numbers.t
ord.r
ord.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
prec.r
prec.t
rcount.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
rcount.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
regex.r
regex.t
rmdoubles.r
rmdoubles.t
rmspecials.r
rmspecials.t
rmwhitespace.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
rmwhitespace.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
sanitize.r Introduce sanitize() function 2018-06-03 16:37:23 -04:00
sanitize.t Introduce sanitize() function 2018-06-03 16:37:23 -04:00
shortcircuit-and.r Reinforce parser tests 2018-04-09 16:25:54 +02:00
shortcircuit-and.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
shortcircuit-or.r Reinforce parser tests 2018-04-09 16:25:54 +02:00
shortcircuit-or.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
specialratio.r
specialratio.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
string.r
string.t
strpos.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
strpos.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
substr.r Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
substr.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
tern.r
tern.t
ucase.r
ucase.t
utf8.r
utf8.t
vars.r
vars.t
whitespace1.r
whitespace1.t
wptest1.r
wptest1.t
wptest2.r
wptest2.t
wptest3.r
wptest3.t