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

Function test_cmdline_lib

dpdk/app/test/test_cmdline_lib.c:240–254  ·  view source on GitHub ↗

test library functions. the point of these tests is not so much to test * functions' behaviour as it is to make sure there are no segfaults if * they are called with invalid parameters. */

Source from the content-addressed store, hash-verified

238 * they are called with invalid parameters.
239 */
240int
241test_cmdline_lib(void)
242{
243 if (test_cmdline_parse_fns() < 0)
244 return -1;
245 if (test_cmdline_rdline_fns() < 0)
246 return -1;
247 if (test_cmdline_vt100_fns() < 0)
248 return -1;
249 if (test_cmdline_socket_fns() < 0)
250 return -1;
251 if (test_cmdline_fns() < 0)
252 return -1;
253 return 0;
254}

Callers 1

test_cmdlineFunction · 0.85

Calls 5

test_cmdline_parse_fnsFunction · 0.85
test_cmdline_rdline_fnsFunction · 0.85
test_cmdline_vt100_fnsFunction · 0.85
test_cmdline_socket_fnsFunction · 0.85
test_cmdline_fnsFunction · 0.85

Tested by

no test coverage detected