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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
arrays.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
bug25373.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
cast.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ccnorm.t Update tests for AntiSpoof fixes 2016-08-13 20:37:43 +00:00
comment.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
eq.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ifthen.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
in.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
lcase.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
length.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
length.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
like.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
like.t Fix double escaping in AFPData::keywordLike() 2014-07-11 14:56:42 -07:00
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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
norm.t Update tests for AntiSpoof fixes 2016-08-13 20:37:43 +00:00
numbers.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
numbers.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ord.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ord.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
prec.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
prec.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
regex.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
rmdoubles.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
rmdoubles.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
rmspecials.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
rmspecials.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
specialratio.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
string.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
string.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
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 Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
tern.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ucase.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
ucase.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
utf8.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
utf8.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
vars.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
vars.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
whitespace1.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
whitespace1.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest1.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest1.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest2.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest2.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest3.r Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00
wptest3.t Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00