LCOV - code coverage report
Current view: top level - test - test-tables.c (source / functions) Hit Total Coverage
Test: systemd_full.info Lines: 83 83 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                 :            : /* SPDX-License-Identifier: LGPL-2.1+ */
       2                 :            : 
       3                 :            : #include "architecture.h"
       4                 :            : #include "automount.h"
       5                 :            : #include "cgroup.h"
       6                 :            : #include "compress.h"
       7                 :            : #include "condition.h"
       8                 :            : #include "device-private.h"
       9                 :            : #include "device.h"
      10                 :            : #include "execute.h"
      11                 :            : #include "import-util.h"
      12                 :            : #include "install.h"
      13                 :            : #include "job.h"
      14                 :            : #include "journald-server.h"
      15                 :            : #include "kill.h"
      16                 :            : #include "link-config.h"
      17                 :            : #include "locale-util.h"
      18                 :            : #include "log.h"
      19                 :            : #include "logs-show.h"
      20                 :            : #include "machine-image.h"
      21                 :            : #include "mount.h"
      22                 :            : #include "path.h"
      23                 :            : #include "process-util.h"
      24                 :            : #include "resolve-util.h"
      25                 :            : #include "rlimit-util.h"
      26                 :            : #include "scope.h"
      27                 :            : #include "service.h"
      28                 :            : #include "show-status.h"
      29                 :            : #include "slice.h"
      30                 :            : #include "socket-util.h"
      31                 :            : #include "socket.h"
      32                 :            : #include "swap.h"
      33                 :            : #include "target.h"
      34                 :            : #include "test-tables.h"
      35                 :            : #include "timer.h"
      36                 :            : #include "unit-name.h"
      37                 :            : #include "unit.h"
      38                 :            : #include "util.h"
      39                 :            : #include "virt.h"
      40                 :            : 
      41                 :          4 : int main(int argc, char **argv) {
      42                 :          4 :         test_table(architecture, ARCHITECTURE);
      43                 :          4 :         test_table(assert_type, CONDITION_TYPE);
      44                 :          4 :         test_table(automount_result, AUTOMOUNT_RESULT);
      45                 :          4 :         test_table(automount_state, AUTOMOUNT_STATE);
      46                 :          4 :         test_table(cgroup_controller, CGROUP_CONTROLLER);
      47                 :          4 :         test_table(cgroup_device_policy, CGROUP_DEVICE_POLICY);
      48                 :          4 :         test_table(cgroup_io_limit_type, CGROUP_IO_LIMIT_TYPE);
      49                 :          4 :         test_table(collect_mode, COLLECT_MODE);
      50                 :          4 :         test_table(condition_result, CONDITION_RESULT);
      51                 :          4 :         test_table(condition_type, CONDITION_TYPE);
      52                 :          4 :         test_table(device_action, DEVICE_ACTION);
      53                 :          4 :         test_table(device_state, DEVICE_STATE);
      54                 :          4 :         test_table(dns_over_tls_mode, DNS_OVER_TLS_MODE);
      55                 :          4 :         test_table(dnssec_mode, DNSSEC_MODE);
      56                 :          4 :         test_table(emergency_action, EMERGENCY_ACTION);
      57                 :          4 :         test_table(exec_directory_type, EXEC_DIRECTORY_TYPE);
      58                 :          4 :         test_table(exec_input, EXEC_INPUT);
      59                 :          4 :         test_table(exec_keyring_mode, EXEC_KEYRING_MODE);
      60                 :          4 :         test_table(exec_output, EXEC_OUTPUT);
      61                 :          4 :         test_table(exec_preserve_mode, EXEC_PRESERVE_MODE);
      62                 :          4 :         test_table(exec_utmp_mode, EXEC_UTMP_MODE);
      63                 :          4 :         test_table(image_type, IMAGE_TYPE);
      64                 :          4 :         test_table(import_verify, IMPORT_VERIFY);
      65                 :          4 :         test_table(job_mode, JOB_MODE);
      66                 :          4 :         test_table(job_result, JOB_RESULT);
      67                 :          4 :         test_table(job_state, JOB_STATE);
      68                 :          4 :         test_table(job_type, JOB_TYPE);
      69                 :          4 :         test_table(kill_mode, KILL_MODE);
      70                 :          4 :         test_table(kill_who, KILL_WHO);
      71                 :          4 :         test_table(locale_variable, VARIABLE_LC);
      72                 :          4 :         test_table(log_target, LOG_TARGET);
      73                 :          4 :         test_table(mac_address_policy, MAC_ADDRESS_POLICY);
      74                 :          4 :         test_table(manager_state, MANAGER_STATE);
      75                 :          4 :         test_table(manager_timestamp, MANAGER_TIMESTAMP);
      76                 :          4 :         test_table(mount_exec_command, MOUNT_EXEC_COMMAND);
      77                 :          4 :         test_table(mount_result, MOUNT_RESULT);
      78                 :          4 :         test_table(mount_state, MOUNT_STATE);
      79                 :          4 :         test_table(name_policy, NAMEPOLICY);
      80                 :          4 :         test_table(namespace_type, NAMESPACE_TYPE);
      81                 :          4 :         test_table(notify_access, NOTIFY_ACCESS);
      82                 :          4 :         test_table(notify_state, NOTIFY_STATE);
      83                 :          4 :         test_table(output_mode, OUTPUT_MODE);
      84                 :          4 :         test_table(partition_designator, PARTITION_DESIGNATOR);
      85                 :          4 :         test_table(path_result, PATH_RESULT);
      86                 :          4 :         test_table(path_state, PATH_STATE);
      87                 :          4 :         test_table(path_type, PATH_TYPE);
      88                 :          4 :         test_table(protect_home, PROTECT_HOME);
      89                 :          4 :         test_table(protect_system, PROTECT_SYSTEM);
      90                 :          4 :         test_table(resolve_support, RESOLVE_SUPPORT);
      91                 :          4 :         test_table(rlimit, RLIMIT);
      92                 :          4 :         test_table(scope_result, SCOPE_RESULT);
      93                 :          4 :         test_table(scope_state, SCOPE_STATE);
      94                 :          4 :         test_table(service_exec_command, SERVICE_EXEC_COMMAND);
      95                 :          4 :         test_table(service_restart, SERVICE_RESTART);
      96                 :          4 :         test_table(service_result, SERVICE_RESULT);
      97                 :          4 :         test_table(service_state, SERVICE_STATE);
      98                 :          4 :         test_table(service_type, SERVICE_TYPE);
      99                 :          4 :         test_table(show_status, SHOW_STATUS);
     100                 :          4 :         test_table(slice_state, SLICE_STATE);
     101                 :          4 :         test_table(socket_address_bind_ipv6_only, SOCKET_ADDRESS_BIND_IPV6_ONLY);
     102                 :          4 :         test_table(socket_exec_command, SOCKET_EXEC_COMMAND);
     103                 :          4 :         test_table(socket_result, SOCKET_RESULT);
     104                 :          4 :         test_table(socket_state, SOCKET_STATE);
     105                 :          4 :         test_table(split_mode, SPLIT);
     106                 :          4 :         test_table(storage, STORAGE);
     107                 :          4 :         test_table(swap_exec_command, SWAP_EXEC_COMMAND);
     108                 :          4 :         test_table(swap_result, SWAP_RESULT);
     109                 :          4 :         test_table(swap_state, SWAP_STATE);
     110                 :          4 :         test_table(target_state, TARGET_STATE);
     111                 :          4 :         test_table(timer_base, TIMER_BASE);
     112                 :          4 :         test_table(timer_result, TIMER_RESULT);
     113                 :          4 :         test_table(timer_state, TIMER_STATE);
     114                 :          4 :         test_table(unit_active_state, UNIT_ACTIVE_STATE);
     115                 :          4 :         test_table(unit_dependency, UNIT_DEPENDENCY);
     116                 :          4 :         test_table(unit_file_change_type, UNIT_FILE_CHANGE_TYPE);
     117                 :          4 :         test_table(unit_file_preset_mode, UNIT_FILE_PRESET);
     118                 :          4 :         test_table(unit_file_state, UNIT_FILE_STATE);
     119                 :          4 :         test_table(unit_load_state, UNIT_LOAD_STATE);
     120                 :          4 :         test_table(unit_type, UNIT_TYPE);
     121                 :          4 :         test_table(virtualization, VIRTUALIZATION);
     122                 :            : 
     123                 :          4 :         test_table_sparse(object_compressed, OBJECT_COMPRESSED);
     124                 :            : 
     125                 :          4 :         return EXIT_SUCCESS;
     126                 :            : }

Generated by: LCOV version 1.14