MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / test_netdev_set_default_netdev

Function test_netdev_set_default_netdev

components/net/utest/tc_netdev.c:389–393  ·  view source on GitHub ↗

* @brief Test setting the default network device * * This function tests the ability to set a network device as the default * network interface for the system. */

Source from the content-addressed store, hash-verified

387 * network interface for the system.
388 */
389static void test_netdev_set_default_netdev(void)
390{
391 netdev_set_default(netdev_get_by_name(RT_UTEST_DEFAULT_NETDEV_NAME));
392 uassert_true(RT_TRUE);
393}
394
395/**
396 * @brief Test IP address conversion functions

Callers

nothing calls this directly

Calls 2

netdev_set_defaultFunction · 0.85
netdev_get_by_nameFunction · 0.85

Tested by

no test coverage detected