Lines Matching refs:expected
33 …function mysqli_get_client_stats_assert_eq($field, $current, $expected, &$test_counter, $desc = ""…
36 if (is_array($current) && is_array($expected)) {
37 if ($current[$field] !== $expected[$field]) {
40 $field, $expected[$field], gettype($expected[$field]),
44 if ($current[$field] !== $expected) {
47 $field, $expected, gettype($expected),
51 if ($current !== $expected) {
54 $field, $expected, gettype($expected),
61 …function mysqli_get_client_stats_assert_gt($field, $current, $expected, &$test_counter, $desc = ""…
64 if (is_array($current) && is_array($expected)) {
65 if ($current[$field] <= $expected[$field]) {
68 $field, $expected[$field], gettype($expected[$field]),
72 if ($current <= $expected) {
75 $expected, gettype($expected),
149 $expected = $info;
157 …$expected['rows_fetched_from_server_normal'] = (string)($expected['rows_fetched_from_server_normal…
158 $expected['buffered_sets'] = (string)($expected['buffered_sets'] + 1);
159 $expected['result_set_queries'] = (string)($expected['result_set_queries'] + 1);
160 …$expected['rows_buffered_from_client_normal'] = (string)($expected['rows_buffered_from_client_norm…
166 mysqli_get_client_stats_assert_gt('bytes_sent', $info, $expected, $test_counter);
167 mysqli_get_client_stats_assert_gt('bytes_received', $info, $expected, $test_counter);
173 …mysqli_get_client_stats_assert_eq('rows_fetched_from_server_normal', $info, $expected, $test_count…
174 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_normal_buffered', $info, $expected, $t…
175 mysqli_get_client_stats_assert_eq('buffered_sets', $info, $expected, $test_counter);
176 mysqli_get_client_stats_assert_eq('result_set_queries', $info, $expected, $test_counter);
177 …mysqli_get_client_stats_assert_eq('rows_buffered_from_client_normal', $info, $expected, $test_coun…
184 …$expected['rows_fetched_from_client_normal_buffered'] = (string)($expected['rows_fetched_from_clie…
191 …mysqli_get_client_stats_assert_gt('bytes_received_real_data_normal', $info, $expected, $test_count…
192 $expected['bytes_received_real_data_normal'] = $info['bytes_received_real_data_normal'];
195 …mysqli_get_client_stats_assert_eq('rows_fetched_from_server_normal', $info, $expected, $test_count…
196 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_normal_buffered', $info, $expected, $t…
197 …mysqli_get_client_stats_assert_eq('rows_buffered_from_client_normal', $info, $expected, $test_coun…
215 …$expected['rows_fetched_from_server_normal'] = (string)($expected['rows_fetched_from_server_normal…
216 …$expected['rows_buffered_from_client_normal'] = (string)($expected['rows_buffered_from_client_norm…
217 $expected['buffered_sets'] = (string)($expected['buffered_sets'] + 1);
218 $expected['result_set_queries'] = (string)($expected['result_set_queries'] + 1);
220 …mysqli_get_client_stats_assert_eq('bytes_received_real_data_normal', $info, $expected, $test_count…
222 …mysqli_get_client_stats_assert_eq('rows_fetched_from_server_normal', $info, $expected, $test_count…
223 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_normal_buffered', $info, $expected, $t…
224 mysqli_get_client_stats_assert_eq('buffered_sets', $info, $expected, $test_counter);
225 mysqli_get_client_stats_assert_eq('result_set_queries', $info, $expected, $test_counter);
226 …mysqli_get_client_stats_assert_eq('rows_buffered_from_client_normal', $info, $expected, $test_coun…
227 …mysqli_get_client_stats_assert_eq('rows_buffered_from_client_normal', $info, $expected, $test_coun…
237 …mysqli_get_client_stats_assert_eq('bytes_received_real_data_normal', $info, $expected, $test_count…
238 …mysqli_get_client_stats_assert_eq('rows_fetched_from_server_normal', $info, $expected, $test_count…
239 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_normal_buffered', $info, $expected, $t…
250 …mysqli_get_client_stats_assert_eq('rows_fetched_from_server_normal', $info, $expected, $test_count…
251 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_normal_unbuffered', $info, $expected, …
252 …mysqli_get_client_stats_assert_eq('bytes_received_real_data_normal', $info, $expected, $test_count…
258 …$expected['rows_fetched_from_server_normal'] = (string)($expected['rows_fetched_from_server_normal…
259 …$expected['rows_fetched_from_client_normal_unbuffered'] = (string)($expected['rows_fetched_from_cl…
260 $expected['unbuffered_sets'] = (string)($expected['unbuffered_sets'] + 1);
261 $expected['result_set_queries'] = (string)($expected['result_set_queries'] + 1);
267 …mysqli_get_client_stats_assert_gt('bytes_received_real_data_normal', $info, $expected, $test_count…
268 $expected['bytes_received_real_data_normal'] = $info['bytes_received_real_data_normal'];
270 …mysqli_get_client_stats_assert_eq('rows_fetched_from_server_normal', $info, $expected, $test_count…
271 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_normal_unbuffered', $info, $expected, …
272 mysqli_get_client_stats_assert_eq('unbuffered_sets', $info, $expected, $test_counter);
273 mysqli_get_client_stats_assert_eq('result_set_queries', $info, $expected, $test_counter);
283 …$expected['rows_fetched_from_server_normal'] = (string)($expected['rows_fetched_from_server_normal…
284 …$expected['rows_fetched_from_client_normal_unbuffered'] = (string)($expected['rows_fetched_from_cl…
285 $expected['unbuffered_sets'] = (string)($expected['unbuffered_sets'] + 1);
286 $expected['result_set_queries'] = (string)($expected['result_set_queries'] + 1);
292 …mysqli_get_client_stats_assert_gt('bytes_received_real_data_normal', $info, $expected, $test_count…
293 $expected['bytes_received_real_data_normal'] = $info['bytes_received_real_data_normal'];
295 …mysqli_get_client_stats_assert_eq('rows_fetched_from_server_normal', $info, $expected, $test_count…
296 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_normal_unbuffered', $info, $expected, …
297 mysqli_get_client_stats_assert_eq('unbuffered_sets', $info, $expected, $test_counter);
298 mysqli_get_client_stats_assert_eq('result_set_queries', $info, $expected, $test_counter);
304 …$expected['rows_fetched_from_server_normal'] = (string)($expected['rows_fetched_from_server_normal…
305 …$expected['rows_fetched_from_client_normal_unbuffered'] = (string)($expected['rows_fetched_from_cl…
306 $expected['rows_skipped_normal'] = (string)($info['rows_skipped_normal'] + 1);
307 $expected['flushed_normal_sets'] = (string)($expected['flushed_normal_sets'] + 1);
313 …mysqli_get_client_stats_assert_eq('bytes_received_real_data_normal', $info, $expected, $test_count…
315 …mysqli_get_client_stats_assert_eq('rows_fetched_from_server_normal', $info, $expected, $test_count…
316 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_normal_unbuffered', $info, $expected, …
317 mysqli_get_client_stats_assert_eq('rows_skipped_normal', $info, $expected, $test_counter);
318 mysqli_get_client_stats_assert_eq('flushed_normal_sets', $info, $expected, $test_counter);
331 mysqli_get_client_stats_assert_eq('rows_fetched_from_server_ps', $info, $expected, $test_counter);
332 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_ps_buffered', $info, $expected, $test_…
340 …mysqli_get_client_stats_assert_eq('bytes_received_real_data_normal', $info, $expected, $test_count…
342 …$expected['rows_fetched_from_server_ps'] = (string)($expected['rows_fetched_from_server_ps'] + $nu…
343 $expected['result_set_queries'] = (string)($expected['result_set_queries'] + 1);
344 $expected['ps_buffered_sets'] = (string)($expected['ps_buffered_sets'] + 1);
345 …$expected['rows_buffered_from_client_ps'] = (string)($expected['rows_buffered_from_client_ps'] + $…
352 mysqli_get_client_stats_assert_eq('rows_fetched_from_server_ps', $info, $expected, $test_counter);
353 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_ps_buffered', $info, $expected, $test_…
354 mysqli_get_client_stats_assert_eq('result_set_queries', $info, $expected, $test_counter);
355 mysqli_get_client_stats_assert_eq('ps_buffered_sets', $info, $expected, $test_counter);
356 mysqli_get_client_stats_assert_eq('rows_buffered_from_client_ps', $info, $expected, $test_counter);
379 …$expected['rows_fetched_from_server_ps'] = (string)($expected['rows_fetched_from_server_ps'] + $nu…
380 …$expected['rows_fetched_from_client_ps_buffered'] = (string)($expected['rows_fetched_from_client_p…
381 $expected['result_set_queries'] = (string)($expected['result_set_queries'] + 1);
382 $expected['ps_buffered_sets'] = (string)($expected['ps_buffered_sets'] + 1);
383 …$expected['rows_buffered_from_client_ps'] = (string)($expected['rows_buffered_from_client_ps'] + $…
390 mysqli_get_client_stats_assert_gt('bytes_received_real_data_ps', $info, $expected, $test_counter);
391 $expected['bytes_received_real_data_ps'] = $info['bytes_received_real_data_ps'];
393 mysqli_get_client_stats_assert_eq('rows_fetched_from_server_ps', $info, $expected, $test_counter);
394 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_ps_buffered', $info, $expected, $test_…
395 mysqli_get_client_stats_assert_eq('result_set_queries', $info, $expected, $test_counter);
396 mysqli_get_client_stats_assert_eq('ps_buffered_sets', $info, $expected, $test_counter);
397 mysqli_get_client_stats_assert_eq('rows_buffered_from_client_ps', $info, $expected, $test_counter);
420 …$expected['rows_fetched_from_server_ps'] = (string)($expected['rows_fetched_from_server_ps'] + $nu…
421 …$expected['rows_fetched_from_client_ps_buffered'] = (string)($expected['rows_fetched_from_client_p…
422 $expected['result_set_queries'] = (string)($expected['result_set_queries'] + 1);
423 $expected['ps_buffered_sets'] = (string)($expected['ps_buffered_sets'] + 1);
424 …$expected['rows_buffered_from_client_ps'] = (string)($expected['rows_buffered_from_client_ps'] + $…
430 mysqli_get_client_stats_assert_gt('bytes_received_real_data_ps', $info, $expected, $test_counter);
431 $expected['bytes_received_real_data_ps'] = $info['bytes_received_real_data_ps'];
433 mysqli_get_client_stats_assert_eq('rows_fetched_from_server_ps', $info, $expected, $test_counter);
434 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_ps_buffered', $info, $expected, $test_…
435 mysqli_get_client_stats_assert_eq('result_set_queries', $info, $expected, $test_counter);
436 mysqli_get_client_stats_assert_eq('ps_buffered_sets', $info, $expected, $test_counter);
437 mysqli_get_client_stats_assert_eq('rows_buffered_from_client_ps', $info, $expected, $test_counter);
439 $expected['rows_skipped_ps'] = $info['rows_skipped_ps'];
447 mysqli_get_client_stats_assert_eq('rows_skipped_ps', $info, $expected, $test_counter);
466 …$expected['rows_fetched_from_server_ps'] = (string)($expected['rows_fetched_from_server_ps'] + $nu…
467 …$expected['rows_fetched_from_client_ps_unbuffered'] = (string)($expected['rows_fetched_from_client…
468 $expected['result_set_queries'] = (string)($expected['result_set_queries'] + 1);
469 $expected['ps_unbuffered_sets'] = (string)($expected['ps_unbuffered_sets'] + 1);
475 mysqli_get_client_stats_assert_gt('bytes_received_real_data_ps', $info, $expected, $test_counter);
476 $expected['bytes_received_real_data_ps'] = $info['bytes_received_real_data_ps'];
478 mysqli_get_client_stats_assert_eq('rows_fetched_from_server_ps', $info, $expected, $test_counter);
479 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_ps_unbuffered', $info, $expected, $tes…
480 mysqli_get_client_stats_assert_eq('result_set_queries', $info, $expected, $test_counter);
481 mysqli_get_client_stats_assert_eq('ps_unbuffered_sets', $info, $expected, $test_counter);
482 mysqli_get_client_stats_assert_eq('rows_buffered_from_client_ps', $info, $expected, $test_counter);
501 …$expected['rows_fetched_from_server_ps'] = (string)($expected['rows_fetched_from_server_ps'] + $nu…
502 …$expected['rows_fetched_from_client_ps_unbuffered'] = (string)($expected['rows_fetched_from_client…
503 $expected['result_set_queries'] = (string)($expected['result_set_queries'] + 1);
504 $expected['ps_unbuffered_sets'] = (string)($expected['ps_unbuffered_sets'] + 1);
510 mysqli_get_client_stats_assert_gt('bytes_received_real_data_ps', $info, $expected, $test_counter);
511 $expected['bytes_received_real_data_ps'] = $info['bytes_received_real_data_ps'];
513 mysqli_get_client_stats_assert_eq('rows_fetched_from_server_ps', $info, $expected, $test_counter);
514 …mysqli_get_client_stats_assert_eq('rows_fetched_from_client_ps_unbuffered', $info, $expected, $tes…
515 mysqli_get_client_stats_assert_eq('result_set_queries', $info, $expected, $test_counter);
516 mysqli_get_client_stats_assert_eq('ps_unbuffered_sets', $info, $expected, $test_counter);
517 mysqli_get_client_stats_assert_eq('rows_buffered_from_client_ps', $info, $expected, $test_counter);
520 $expected['rows_skipped_ps'] = (string)($expected['rows_skipped_ps'] + 1);
521 $expected['flushed_ps_sets'] = (string)($expected['flushed_ps_sets'] + 1);
522 $expected['rows_fetched_from_server_ps'] = (string)($expected['rows_fetched_from_server_ps'] + 1);
528 mysqli_get_client_stats_assert_eq('bytes_received_real_data_ps', $info, $expected, $test_counter);
530 mysqli_get_client_stats_assert_eq('rows_skipped_ps', $info, $expected, $test_counter);
531 mysqli_get_client_stats_assert_eq('flushed_ps_sets', $info, $expected, $test_counter);
532 mysqli_get_client_stats_assert_eq('rows_fetched_from_server_ps', $info, $expected, $test_counter);
537 if ($info[$k] != $expected[$k])
538 printf("$k - $v != %s\n", $expected[$k]);
546 …mysqli_get_client_stats_assert_eq('bytes_received_real_data_normal', $info, $expected, $test_count…
547 mysqli_get_client_stats_assert_eq('bytes_received_real_data_ps', $info, $expected, $test_counter);
578 …mysqli_get_client_stats_assert_gt('bytes_received_real_data_normal', $info, $expected, $test_count…
579 $expected['bytes_received_real_data_normal'] = $info['bytes_received_real_data_normal'];
761 …mysqli_get_client_stats_assert_eq('bytes_received_real_data_normal', $info, $expected, $test_count…
762 mysqli_get_client_stats_assert_eq('bytes_received_real_data_ps', $info, $expected, $test_counter);
862 …mysqli_get_client_stats_assert_eq('bytes_received_real_data_normal', $info, $expected, $test_count…
863 mysqli_get_client_stats_assert_eq('bytes_received_real_data_ps', $info, $expected, $test_counter);
913 …mysqli_get_client_stats_assert_gt('bytes_received_real_data_normal', $info, $expected, $test_count…
914 $expected['bytes_received_real_data_normal'] = $info['bytes_received_real_data_normal'];
915 mysqli_get_client_stats_assert_eq('bytes_received_real_data_ps', $info, $expected, $test_counter);