Lines Matching defs:expected
177 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected,
210 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self &&
211 !strcmp(COMM(he), expected[i].comm) &&
212 !strcmp(DSO(he), expected[i].dso) &&
213 !strcmp(SYM(he), expected[i].sym));
216 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children);
224 TEST_ASSERT_VAL("callchains expected", !RB_EMPTY_ROOT(root));
255 * expected output:
269 struct result expected[] = {
292 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0);
306 * expected output:
367 struct result expected[] = {
439 err = do_test(hists, expected, ARRAY_SIZE(expected),
454 * expected output:
471 struct result expected[] = {
497 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0);
511 * expected output:
591 struct result expected[] = {
683 err = do_test(hists, expected, ARRAY_SIZE(expected),