Branch Coverage

lib/Wireguard/WGmeta/Parser/Conf.pm
Criterion Covered Total %
branch 25 28 89.2


line true false branch
113 42 115 if ($IS_ROOT) { }
118 1 114 $IS_ACTIVE_COUNTER == 1 ? :
120 0 115 if exists $parsed_config->{$identifier}
137 0 719 if $line_count <= $skip
142 7 712 if (substr($line, 0, 2) eq $wg_disabled_prefix)
144 1 6 if $IS_ACTIVE_COUNTER != 1
146 88 631 if (substr($line, 0, 2) eq $wg_meta_prefix) { }
156 96 623 unless $line
159 42 581 if (substr($line, 0, 11) eq "[Interface]")
165 73 508 if (substr($line, 0, 6) eq "[Peer]")
172 17 491 if (substr($line, 0, 1) eq '#') { }
175 17 474 if $discard == 1
178 115 359 if $raw_key eq $IDENT_KEY
186 0 491 $IS_ROOT ? :