Function report |
Source Code:lib\test_objagg.c |
Create Date:2022-07-28 06:35:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:check_expect
Proto:static int check_expect(struct world *world, const struct action_item *action_item, unsigned int orig_delta_count, unsigned int orig_root_count)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct world * | world | |
const struct action_item * | action_item | |
unsigned int | orig_delta_count | |
unsigned int | orig_root_count |
569 | Case expect_delta == EXPECT_DELTA_SAME |
576 | Case expect_delta == EXPECT_DELTA_INC |
577 | If WARN_ON(action == ACTION_PUT) Then Return -EINVAL |
579 | If orig_delta_count + 1 != delta_count Then |
584 | Break |
585 | Case expect_delta == EXPECT_DELTA_DEC |
586 | If WARN_ON(action == ACTION_GET) Then Return -EINVAL |
588 | If orig_delta_count - 1 != delta_count Then |
593 | Break |
597 | Case expect_root == EXPECT_ROOT_SAME |
604 | Case expect_root == EXPECT_ROOT_INC |
605 | If WARN_ON(action == ACTION_PUT) Then Return -EINVAL |
607 | If orig_root_count + 1 != root_count Then |
612 | Break |
613 | Case expect_root == EXPECT_ROOT_DEC |
614 | If WARN_ON(action == ACTION_GET) Then Return -EINVAL |
616 | If orig_root_count - 1 != root_count Then |
623 | Return 0 |
Name | Describe |
---|---|
test_delta_action_item |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |