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

Function test_get_invalid

dpdk/app/test/test_fib.c:189–203  ·  view source on GitHub ↗

* Check that rte_fib_get_dp and rte_fib_get_rib fails gracefully * for incorrect user input arguments */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

rte_fib_get_dpFunction · 0.85
rte_fib_get_ribFunction · 0.85

Tested by

no test coverage detected