LCOV - code coverage report
Current view: top level - network - test-network-tables.c (source / functions) Hit Total Coverage
Test: systemd_full.info Lines: 28 28 100.0 %
Date: 2019-08-23 13:36:53 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : #include "dhcp6-internal.h"
       2                 :            : #include "dhcp6-protocol.h"
       3                 :            : #include "ethtool-util.h"
       4                 :            : #include "lldp-internal.h"
       5                 :            : #include "ndisc-internal.h"
       6                 :            : #include "netdev/bond.h"
       7                 :            : #include "netdev/ipvlan.h"
       8                 :            : #include "netdev/macvlan.h"
       9                 :            : #include "netdev/tunnel.h"
      10                 :            : #include "netlink-internal.h"
      11                 :            : #include "networkd-link.h"
      12                 :            : #include "networkd-network.h"
      13                 :            : #include "networkd-util.h"
      14                 :            : #include "test-tables.h"
      15                 :            : 
      16                 :          4 : int main(int argc, char **argv) {
      17                 :          4 :         test_table(bond_ad_select, NETDEV_BOND_AD_SELECT);
      18                 :          4 :         test_table(bond_arp_all_targets, NETDEV_BOND_ARP_ALL_TARGETS);
      19                 :          4 :         test_table(bond_arp_validate, NETDEV_BOND_ARP_VALIDATE);
      20                 :          4 :         test_table(bond_fail_over_mac, NETDEV_BOND_FAIL_OVER_MAC);
      21                 :          4 :         test_table(bond_lacp_rate, NETDEV_BOND_LACP_RATE);
      22                 :          4 :         test_table(bond_mode, NETDEV_BOND_MODE);
      23                 :          4 :         test_table(bond_primary_reselect, NETDEV_BOND_PRIMARY_RESELECT);
      24                 :          4 :         test_table(bond_xmit_hash_policy, NETDEV_BOND_XMIT_HASH_POLICY);
      25                 :          4 :         test_table(dhcp6_message_status, DHCP6_STATUS);
      26                 :          4 :         test_table_sparse(dhcp6_message_type, DHCP6_MESSAGE); /* enum starts from 1 */
      27                 :          4 :         test_table(dhcp_use_domains, DHCP_USE_DOMAINS);
      28                 :          4 :         test_table(duplex, DUP);
      29                 :          4 :         test_table(ip6tnl_mode, NETDEV_IP6_TNL_MODE);
      30                 :          4 :         test_table(ipv6_privacy_extensions, IPV6_PRIVACY_EXTENSIONS);
      31                 :          4 :         test_table(ipvlan_flags, NETDEV_IPVLAN_FLAGS);
      32                 :          4 :         test_table(link_operstate, LINK_OPERSTATE);
      33                 :            :         /* test_table(link_state, LINK_STATE);  — not a reversible mapping */
      34                 :          4 :         test_table(lldp_mode, LLDP_MODE);
      35                 :          4 :         test_table(netdev_kind, NETDEV_KIND);
      36                 :          4 :         test_table(nl_union_link_info_data, NL_UNION_LINK_INFO_DATA);
      37                 :          4 :         test_table(radv_prefix_delegation, RADV_PREFIX_DELEGATION);
      38                 :          4 :         test_table(wol, WOL);
      39                 :          4 :         test_table(lldp_event, SD_LLDP_EVENT);
      40                 :          4 :         test_table(ndisc_event, SD_NDISC_EVENT);
      41                 :            : 
      42                 :          4 :         test_table_sparse(ipvlan_mode, NETDEV_IPVLAN_MODE);
      43                 :          4 :         test_table_sparse(macvlan_mode, NETDEV_MACVLAN_MODE);
      44                 :          4 :         test_table_sparse(address_family, ADDRESS_FAMILY);
      45                 :            : 
      46                 :          4 :         return EXIT_SUCCESS;
      47                 :            : }

Generated by: LCOV version 1.14