Branch Coverage

blib/lib/Test/Git/Workflow/Command.pm
Criterion Covered Total %
branch 26 44 59.0


line true false branch
34 1 99 if ($data->{'skip'} and $data->{'skip'}->())
39 0 99 if ($data->{'todo'})
50 6 93 if ($data->{'workflow'})
56 2 97 if ($data->{'ENV'})
68 6 93 if ($error)
71 0 6 unless &is($error, $data->{'error'}, "Error matches")
75 67 32 if (not ref $data->{'STD'}{'OUT'}) { }
31 1 elsif (ref $data->{'STD'}{'OUT'} eq 'Regexp') { }
1 0 elsif (ref $data->{'STD'}{'OUT'} eq 'HASH') { }
77 0 67 unless &is($stdout, $data->{'STD'}{'OUT'}, "STDOUT $data->{'name'} run")
81 0 31 unless &like($stdout, $data->{'STD'}{'OUT'}, "STDOUT $data->{'name'} run")
84 1 0 $data->{'STD'}{'OUT_PRE'} ? :
87 0 1 unless is_deeply($actual, $data->{'STD'}{'OUT'}, "STDOUT $data->{'name'} run")
91 70 29 if (not ref $data->{'STD'}{'ERR'}) { }
29 0 elsif (ref $data->{'STD'}{'ERR'} eq 'Regexp') { }
0 0 elsif (ref $data->{'STD'}{'ERR'} eq 'HASH') { }
93 0 70 unless &is($stderr, $data->{'STD'}{'ERR'}, "STDERR $data->{'name'} run")
97 0 29 unless &like($stderr, $data->{'STD'}{'ERR'}, "STDERR $data->{'name'} run")
100 0 0 $data->{'STD'}{'ERR_PRE'} ? :
102 0 0 unless is_deeply($actual, $data->{'STD'}{'ERR'}, "STDERR $data->{'name'} run")
106 0 99 unless is_deeply(\%{"${module}::option";}, $data->{'option'}, "Options set correctly")
108 0 99 unless &ok(!@{$Test::Git::Workflow::Command::git->{'data'};}, "All data setup is used")