mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
4f3b020f5d
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
5 lines
148 B
Perl
5 lines
148 B
Perl
strpos( "foobarfoo", "foo" ) === 0 &
|
|
strpos( "foobarfoo", "" ) === -1 &
|
|
strpos( "foobarfoo", "foo", 1 ) === 6 &
|
|
strpos( "foobarfoo", "lol" ) === -1
|