| 33 | static struct reorder_unittest_params *test_params = &default_params; |
| 34 | |
| 35 | static int |
| 36 | test_reorder_create(void) |
| 37 | { |
| 38 | struct rte_reorder_buffer *b = NULL; |
| 39 | |
| 40 | b = rte_reorder_create(NULL, rte_socket_id(), REORDER_BUFFER_SIZE); |
| 41 | TEST_ASSERT((b == NULL) && (rte_errno == EINVAL), |
| 42 | "No error on create() with NULL name"); |
| 43 | |
| 44 | b = rte_reorder_create("PKT", rte_socket_id(), REORDER_BUFFER_SIZE_INVALID); |
| 45 | TEST_ASSERT((b == NULL) && (rte_errno == EINVAL), |
| 46 | "No error on create() with invalid buffer size param."); |
| 47 | |
| 48 | b = rte_reorder_create("PKT_RO1", rte_socket_id(), REORDER_BUFFER_SIZE); |
| 49 | TEST_ASSERT_EQUAL(b, test_params->b, |
| 50 | "New reorder instance created with already existing name"); |
| 51 | |
| 52 | return 0; |
| 53 | } |
| 54 | |
| 55 | static int |
| 56 | test_reorder_init(void) |
nothing calls this directly
no test coverage detected