MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_misc

Function test_misc

dpdk/app/test/test_acl.c:1587–1610  ·  view source on GitHub ↗

* Various tests that don't test much but improve coverage */

Source from the content-addressed store, hash-verified

1585 * Various tests that don't test much but improve coverage
1586 */
1587static int
1588test_misc(void)
1589{
1590 struct rte_acl_param param;
1591 struct rte_acl_ctx *acx;
1592
1593 /* create context */
1594 memcpy(&param, &acl_param, sizeof(param));
1595
1596 acx = rte_acl_create(&param);
1597 if (acx == NULL) {
1598 printf("Line %i: Error creating ACL context!\n", __LINE__);
1599 return -1;
1600 }
1601
1602 /* dump context with rules - useful for coverage */
1603 rte_acl_list_dump();
1604
1605 rte_acl_dump(acx);
1606
1607 rte_acl_free(acx);
1608
1609 return 0;
1610}
1611
1612static uint32_t
1613get_u32_range_max(void)

Callers 1

test_aclFunction · 0.70

Calls 6

rte_acl_createFunction · 0.85
rte_acl_list_dumpFunction · 0.85
rte_acl_dumpFunction · 0.85
rte_acl_freeFunction · 0.85
memcpyFunction · 0.50
printfFunction · 0.50

Tested by

no test coverage detected