Branch Coverage

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


line true false branch
113 43 117 if ($IS_ROOT) { }
118 1 116 $IS_ACTIVE_COUNTER == 1 ? :
120 0 117 if exists $parsed_config->{$identifier}
137 0 733 if $line_count <= $skip
142 7 726 if (substr($line, 0, 2) eq $wg_disabled_prefix)
144 1 6 if $IS_ACTIVE_COUNTER != 1
146 89 644 if (substr($line, 0, 2) eq $wg_meta_prefix) { }
156 98 635 unless $line
159 43 592 if (substr($line, 0, 11) eq "[Interface]")
165 74 518 if (substr($line, 0, 6) eq "[Peer]")
172 18 500 if (substr($line, 0, 1) eq '#') { }
175 17 483 if $discard == 1
178 117 366 if $raw_key eq $IDENT_KEY
186 0 501 $IS_ROOT ? :