| 1 |
## This include file contains following macros: |
| 2 |
# |
| 3 |
# * Assert_rows |
| 4 |
# * Assert_metadata |
| 5 |
# * Assert_message |
| 6 |
# * Assert_frame |
| 7 |
# * Assert_received_messages |
| 8 |
# |
| 9 |
|
| 10 |
|
| 11 |
-->macro Assert_rows %ROWS% |
| 12 |
noquery_result; |
| 13 |
repeat %ROWS%; |
| 14 |
echo [ASSERT Mysqlx.Resultset.Row]; |
| 15 |
recvtype Mysqlx.Resultset.Row; |
| 16 |
endrepeat; |
| 17 |
query_result; |
| 18 |
-->endmacro |
| 19 |
|
| 20 |
|
| 21 |
-->macro Assert_metadata %COL_TYPE% %COL_NAME% |
| 22 |
noquery_result; |
| 23 |
echo [ASSERT Mysqlx.Resultset.ColumnMetaData]; |
| 24 |
recvmessage Mysqlx.Resultset.ColumnMetaData {type: %COL_TYPE% name: %COL_NAME%}; |
| 25 |
query_result; |
| 26 |
-->endmacro |
| 27 |
|
| 28 |
|
| 29 |
-->macro Assert_message %NAME% |
| 30 |
noquery_result; |
| 31 |
echo [ASSERT %NAME%]; |
| 32 |
recvtype %NAME%; |
| 33 |
query_result; |
| 34 |
-->endmacro |
| 35 |
|
| 36 |
|
| 37 |
-->macro Assert_frame %NAME% |
| 38 |
noquery_result; |
| 39 |
echo [ASSERT %NAME%]; |
| 40 |
recvtype %NAME%; |
| 41 |
query_result; |
| 42 |
-->endmacro |
| 43 |
|
| 44 |
-->macro Assert_received_messages %MESSAGE_NAME% %COUNT% |
| 45 |
received %MESSAGE_NAME% %MYSQLXTEST_NO_OF_MSG%; |
| 46 |
echo [ASSERT %MESSAGE_NAME% == %COUNT%]; |
| 47 |
assert %COUNT% == %MYSQLXTEST_NO_OF_MSG%; |
| 48 |
-->endmacro |