mediawiki-extensions-AbuseF.../tests/parserTests
Daimona Eaytoy 09d0254172 Better handling of DNONE
This patch includes:
 * Making it possible to access offsets of a DNONE (returning a DNONE)
 * Initializing user-defined variables as DNONE inside short-circuited branches
 * Make DNONE propagate with other operators
 * Make DNONE count as false for logic operators
 * Remove a now-outaded bit in doLevelAtom. In case of shortcircuit,
   $result is now DNONE instead of DNULL, and thus it's possible to
   access offsets of it. Performance++!
 * Don't allow modifying or adding an element of a DNONE as if it were an
    array (to avoid inconsistencies)

This re-applies Id85c673337fa90a3782fd22eb9690cd996967111 with several fixes.

NOTE: Haven't tested locally, although I'm pretty confident thanks to
the amount of tests added.

Bug: T214674
Bug: T228677
Change-Id: I5ec4ab44c4e88aaf18c0d7b73355d27050beeda7
2019-08-02 21:05:08 +00:00
..
arith.t Restore unit tests for CachingParser and fix it 2019-05-25 10:55:24 +02:00
array-assignment.t Rename lists to arrays 2018-06-26 14:42:23 +02:00
array-comparisons.t Unbreak short circuit for arrays 2018-10-03 16:44:10 +02:00
arrays.t
bool-assoc.t Fix the associativity of boolean logic operators 2016-11-06 20:30:07 -05:00
bug25373.t
cast.t Increase code coverage a bit 2019-04-13 18:30:14 +02:00
ccnorm-contains-all.t Add contains_all and ccnorm_contains_all functions 2018-02-09 17:33:24 +01:00
ccnorm-contains-any.t Add ccnorm_contains_any function 2017-10-06 11:32:45 -04:00
ccnorm.t Update tests for AntiSpoof fixes 2016-08-13 20:37:43 +00:00
comment.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
concatenation.t Improve code coverage 2018-08-22 19:07:14 +02:00
contains-all.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
contains-any.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
contains.t Improve code coverage 2018-08-22 19:07:14 +02:00
containsfunction.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
count.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
dnone.t Better handling of DNONE 2019-08-02 21:05:08 +00:00
dnoneparens.t Better handling of DNONE 2019-08-02 21:05:08 +00:00
eq.t
equals-to-any.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
expn.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
float.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
get-matches.t Restore unit tests for CachingParser and fix it 2019-05-25 10:55:24 +02:00
ifthen.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
in.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
lazyboolinvert.t 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.t 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.t 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.t
length.t
like.t Fix double escaping in AFPData::keywordLike() 2014-07-11 14:56:42 -07:00
multipleskipbraces.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
mwexamples-arithmetic.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
mwexamples-arrays.t Restore unit tests for CachingParser and fix it 2019-05-25 10:55:24 +02:00
mwexamples-bools.t 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.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
mwexamples-keywords.t Improve code coverage 2018-08-22 19:07:14 +02:00
norm.t Update tests for AntiSpoof fixes 2016-08-13 20:37:43 +00:00
numbers.t
ord.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
prec.t
rcount.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
regex.t Tweak coverage part 2 2019-04-13 19:26:01 +02:00
rmdoubles.t
rmspecials.t
rmwhitespace.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
sanitize.t Introduce sanitize() function 2018-06-03 16:37:23 -04:00
shortcircuit-and.t Clean AbuseFilterParserTests 2019-03-23 12:59:03 +01:00
shortcircuit-ops.t Clean AbuseFilterParserTests 2019-03-23 12:59:03 +01:00
shortcircuit-or.t Reinforce parser tests 2018-04-09 16:25:54 +02:00
specialratio.t Improve code coverage for AbuseFilterParser 2018-08-20 14:38:40 +02:00
string.t Improve coverage for AbuseFilterTokenizer 2018-08-25 10:25:16 +02:00
strpos.t 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.t
ucase.t
utf8.t
vars.t
whitespace1.t
wptest1.t
wptest2.t
wptest3.t