Lines Matching refs:expected
311 const char *expected; in test_stats_prefix_dump() local
321 expected = "PREFIX abc get 0 hit 0 set 1 del 0\r\nEND\r\n"; in test_stats_prefix_dump()
322 assert(strcmp(expected, (buf = stats_prefix_dump(&length))) == 0); in test_stats_prefix_dump()
323 assert(strlen(expected) == length); in test_stats_prefix_dump()
326 expected = "PREFIX abc get 1 hit 0 set 1 del 0\r\nEND\r\n"; in test_stats_prefix_dump()
327 assert(strcmp(expected, (buf = stats_prefix_dump(&length))) == 0); in test_stats_prefix_dump()
328 assert(strlen(expected) == length); in test_stats_prefix_dump()
331 expected = "PREFIX abc get 2 hit 1 set 1 del 0\r\nEND\r\n"; in test_stats_prefix_dump()
332 assert(strcmp(expected, (buf = stats_prefix_dump(&length))) == 0); in test_stats_prefix_dump()
333 assert(strlen(expected) == length); in test_stats_prefix_dump()
336 expected = "PREFIX abc get 2 hit 1 set 1 del 1\r\nEND\r\n"; in test_stats_prefix_dump()
337 assert(strcmp(expected, (buf = stats_prefix_dump(&length))) == 0); in test_stats_prefix_dump()
338 assert(strlen(expected) == length); in test_stats_prefix_dump()
772 char expected[80] = { 0 }; in test_vperror() local
773 snprintf(expected, sizeof(expected), in test_vperror()
782 return strcmp(expected, buf) == 0 ? TEST_PASS : TEST_FAIL; in test_vperror()