Branch Coverage

blib/lib/Mojolicious/Plugin/Systemd.pm
Criterion Covered Total %
branch 28 32 87.5


line true false branch
35 0 3 if $config->{'config_map'}
38 2 1 if $file or $ENV{'XDG_SESSION_ID'}
47 4 56 if (ref $config_map->{$k} eq 'HASH') { }
56 0 elsif (ref $config_map->{$k} eq 'CODE') { }
54 5 51 if defined $ENV{$ek}
61 2 3 ref $template eq 'ARRAY' ? :
68 1 3 if (not defined $source->{$k}) { }
1 2 elsif (ref $source->{$k} eq 'HASH') { }
2 0 elsif (ref $source->{$k} eq 'CODE') { }
84 2 1 $file =~ s/^(-)// ? :
85 2 1 if $flag eq '-' and not -r $file
89 6 1 if /^(\w+)=(.*)/
99 8 32 if /^\s*\bEnvironment=(.+)/
100 2 38 if /^\s*\bEnvironmentFile=(.+)/
101 2 38 if /^\s*\bUnsetEnvironment=(.+)/
118 18 0 if $expr =~ /^(\w+)=(.*)/