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

Function test_get_invalid

dpdk/app/test/test_fib6.c:192–206  ·  view source on GitHub ↗

* Check that rte_fib6_get_dp and rte_fib6_get_rib fails gracefully * for incorrect user input arguments */

Source from the content-addressed store, hash-verified

190 * for incorrect user input arguments
191 */
192int32_t
193test_get_invalid(void)
194{
195 void *p;
196
197 p = rte_fib6_get_dp(NULL);
198 RTE_TEST_ASSERT(p == NULL,
199 "Call succeeded with invalid parameters\n");
200
201 p = rte_fib6_get_rib(NULL);
202 RTE_TEST_ASSERT(p == NULL,
203 "Call succeeded with invalid parameters\n");
204
205 return TEST_SUCCESS;
206}
207
208/*
209 * Add routes for one supernet with all possible depths and do lookup

Callers

nothing calls this directly

Calls 2

rte_fib6_get_dpFunction · 0.85
rte_fib6_get_ribFunction · 0.85

Tested by

no test coverage detected