2010-10-06 18:37:14 +04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<root>
|
2010-10-07 16:12:26 +04:00
|
|
|
<case name="custom" desc="custom">
|
|
|
|
<test>
|
2010-10-07 19:34:17 +04:00
|
|
|
<positive format="%s%s%s %s %s%d=%d %s" params="value, prefix, ")" * parenthesis, logic, "(" * parenthesis, randInt, randInt, postfix"/>
|
|
|
|
<negative format="%s%s%s %s %s%d=%d %s" params="value, prefix, ")" * parenthesis, logic, "(" * parenthesis, randInt, randInt + 1, postfix"/>
|
2010-10-07 16:12:26 +04:00
|
|
|
</test>
|
|
|
|
<usage>
|
2010-10-07 18:05:34 +04:00
|
|
|
<prefix format="%s " params="')' * parenthesis"/>
|
2010-10-07 19:34:17 +04:00
|
|
|
<postfix format=" %s %s" params="logic, '(' * parenthesis"/>
|
2010-10-07 16:12:26 +04:00
|
|
|
</usage>
|
2010-10-06 18:37:14 +04:00
|
|
|
</case>
|
2010-10-07 16:12:26 +04:00
|
|
|
<case name="numeric" desc="unescaped numeric">
|
|
|
|
<test>
|
2010-10-07 19:34:17 +04:00
|
|
|
<positive format="%s%s %s %s%d=%d" params="value, ")" * parenthesis, logic, "(" * parenthesis, randInt, randInt"/>
|
|
|
|
<negative format="%s%s %s %s%d=%d" params="value, ")" * parenthesis, logic, "(" * parenthesis, randInt, randInt + 1"/>
|
2010-10-07 16:12:26 +04:00
|
|
|
</test>
|
|
|
|
<usage>
|
2010-10-07 18:05:34 +04:00
|
|
|
<prefix format="%s " params="')' * parenthesis"/>
|
2010-10-07 19:34:17 +04:00
|
|
|
<postfix format=" %s %s%d=%d" params="logic, '(' * parenthesis, randInt, randInt"/>
|
2010-10-07 16:12:26 +04:00
|
|
|
</usage>
|
2010-10-06 18:37:14 +04:00
|
|
|
</case>
|
2010-10-07 16:12:26 +04:00
|
|
|
<case name="stringsingle" desc="single quoted string">
|
|
|
|
<test>
|
2010-10-07 19:34:17 +04:00
|
|
|
<positive format="%s'%s %s %s'%s'='%s" params="value, ")" * parenthesis, logic, "(" * parenthesis, randStr, randStr"/>
|
|
|
|
<negative format="%s'%s %s %s'%s'='%s" params="value, ")" * parenthesis, logic, "(" * parenthesis, randStr, randStr + randomStr(1)"/>
|
2010-10-07 16:12:26 +04:00
|
|
|
</test>
|
|
|
|
<usage>
|
2010-10-07 18:05:34 +04:00
|
|
|
<prefix format="'%s " params="')' * parenthesis"/>
|
2010-10-07 19:34:17 +04:00
|
|
|
<postfix format=" %s %s'%s'='%s" params="logic, '(' * parenthesis, randStr, randStr"/>
|
2010-10-07 16:12:26 +04:00
|
|
|
</usage>
|
2010-10-06 18:37:14 +04:00
|
|
|
</case>
|
2010-10-07 16:12:26 +04:00
|
|
|
<case name="likesingle" desc="LIKE single quoted string">
|
|
|
|
<test>
|
2010-10-07 19:34:17 +04:00
|
|
|
<positive format="%s'%s %s %s'%s' LIKE '%s" params="value, ")" * parenthesis, logic, "(" * parenthesis, randStr, randStr"/>
|
|
|
|
<negative format="%s'%s %s %s'%s' LIKE '%s" params="value, ")" * parenthesis, logic, "(" * parenthesis, randStr, randStr + randomStr(1)"/>
|
2010-10-07 16:12:26 +04:00
|
|
|
</test>
|
|
|
|
<usage>
|
2010-10-07 18:05:34 +04:00
|
|
|
<prefix format="'%s " params="')' * parenthesis"/>
|
2010-10-07 19:34:17 +04:00
|
|
|
<postfix format=" %s %s'%s' LIKE '%s" params="logic, '(' * parenthesis, randStr, randStr"/>
|
2010-10-07 16:12:26 +04:00
|
|
|
</usage>
|
2010-10-06 18:37:14 +04:00
|
|
|
</case>
|
2010-10-07 16:12:26 +04:00
|
|
|
<case name="stringdouble" desc="double quoted string">
|
|
|
|
<test>
|
2010-10-10 21:46:09 +04:00
|
|
|
<positive format="%s"%s %s %s"%s"="%s" params="value, ")" * parenthesis, logic, "(" * parenthesis, randStr, randStr"/>
|
|
|
|
<negative format="%s"%s %s %s"%s"="%s" params="value, ")" * parenthesis, logic, "(" * parenthesis, randStr, randStr + randomStr(1)"/>
|
2010-10-07 16:12:26 +04:00
|
|
|
</test>
|
|
|
|
<usage>
|
2010-10-07 18:05:34 +04:00
|
|
|
<prefix format=""%s " params="')' * parenthesis"/>
|
2010-10-10 21:46:09 +04:00
|
|
|
<postfix format=" %s %s"%s"="%s" params="logic, '(' * parenthesis, randStr, randStr"/>
|
2010-10-07 16:12:26 +04:00
|
|
|
</usage>
|
2010-10-06 18:37:14 +04:00
|
|
|
</case>
|
2010-10-07 16:12:26 +04:00
|
|
|
<case name="likedouble" desc="LIKE double quoted string">
|
|
|
|
<test>
|
2010-10-10 21:46:09 +04:00
|
|
|
<positive format="%s"%s %s %s"%s" LIKE "%s" params="value, ")" * parenthesis, logic, "(" * parenthesis, randStr, randStr"/>
|
|
|
|
<negative format="%s"%s %s %s"%s" LIKE "%s" params="value, ")" * parenthesis, logic, "(" * parenthesis, randStr, randStr + randomStr(1)"/>
|
2010-10-07 16:12:26 +04:00
|
|
|
</test>
|
|
|
|
<usage>
|
2010-10-07 18:05:34 +04:00
|
|
|
<prefix format=""%s " params="')' * parenthesis"/>
|
2010-10-10 21:46:09 +04:00
|
|
|
<postfix format=" %s %s"%s" LIKE "%s" params="logic, '(' * parenthesis, randStr, randStr"/>
|
2010-10-07 16:12:26 +04:00
|
|
|
</usage>
|
2010-10-06 18:37:14 +04:00
|
|
|
</case>
|
|
|
|
</root>
|