Lines Matching refs:test
83 static void resource_do_test(struct kunit *test, bool ret, struct resource *r, in resource_do_test() argument
87 KUNIT_EXPECT_EQ_MSG(test, ret, exp_ret, "Resources %pR %pR", r1, r2); in resource_do_test()
88 KUNIT_EXPECT_EQ_MSG(test, r->start, exp_r->start, "Start elements are not equal"); in resource_do_test()
89 KUNIT_EXPECT_EQ_MSG(test, r->end, exp_r->end, "End elements are not equal"); in resource_do_test()
92 static void resource_do_union_test(struct kunit *test, struct result *r) in resource_do_union_test() argument
99 resource_do_test(test, ret, &result, r->ret, &r->r, r->r1, r->r2); in resource_do_union_test()
103 resource_do_test(test, ret, &result, r->ret, &r->r, r->r2, r->r1); in resource_do_union_test()
106 static void resource_test_union(struct kunit *test) in resource_test_union() argument
112 resource_do_union_test(test, &r[i]); in resource_test_union()
116 static void resource_do_intersection_test(struct kunit *test, struct result *r) in resource_do_intersection_test() argument
123 resource_do_test(test, ret, &result, r->ret, &r->r, r->r1, r->r2); in resource_do_intersection_test()
127 resource_do_test(test, ret, &result, r->ret, &r->r, r->r2, r->r1); in resource_do_intersection_test()
130 static void resource_test_intersection(struct kunit *test) in resource_test_intersection() argument
136 resource_do_intersection_test(test, &r[i]); in resource_test_intersection()