Lines Matching refs:expected
190 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument
223 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && in do_test()
224 !strcmp(COMM(he), expected[i].comm) && in do_test()
225 !strcmp(DSO(he), expected[i].dso) && in do_test()
226 !strcmp(SYM(he), expected[i].sym)); in do_test()
229 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); in do_test()
282 struct result expected[] = { in test1() local
305 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1()
380 struct result expected[] = { in test2() local
452 err = do_test(hists, expected, ARRAY_SIZE(expected), in test2()
484 struct result expected[] = { in test3() local
510 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test3()
604 struct result expected[] = { in test4() local
696 err = do_test(hists, expected, ARRAY_SIZE(expected), in test4()