Branch Coverage

lib/Wireguard/WGmeta/Wrapper/ConfigT.pm
Criterion Covered Total %
branch 33 42 78.5


line true false branch
164 2 0 if (exists $self->{'parsed_config'}{$interface}{$identifier}) { }
195 0 27 if (@config_files == 0)
254 11 14 if ($self->_has_changed($interface_name))
256 11 0 if ($is_hot_config == 1) { }
270 10 1 if (-e $file_name) { }
273 0 10 unless open $fh, "+<", $file_name
294 1 9 if defined $is_new
310 10 1 if (defined $ref_on_disk_config) { }
312 29 4 if (exists $ref_on_disk_config->{$identifier_internal}) { }
320 2 29 unless (exists $self->{'parsed_config'}{$interface}{$identifier_ondisk})
322 1 1 unless ($self->_is_latest_data($interface))
339 6 21 if ($on_disk_sha ne $internal_sha) { }
342 4 2 if (defined $ref_hash_integrity_keys and exists $ref_hash_integrity_keys->{$identifier}) { }
345 1 3 if ($on_disk_sha ne $ref_hash_integrity_keys->{$identifier})
434 2 0 if (exists $self->{'parsed_config'}{$interface}) { }
445 0 2 if (-e $safe_path)
456 27 0 if ($self->{'n_conf_files'} != $count)
461 55 62 unless (exists $self->{'parsed_config'}{$i_name})
468 1 63 unless (-e $self->{'parsed_config'}{$internal_interface}{'int_config_path'})
469 0 1 if $self->_has_changed($internal_interface)
508 4 0 if (exists $self->{'parsed_config'}{$interface} and exists $self->{'parsed_config'}{$interface}{$identifier}) { }