Branch Coverage

blib/lib/Test/MockCommand/Result.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
18 176 482 if @_ > 1
26 0 50 if @_ % 2
35 17 33 if $self->{'function'} eq 'open'
42 0 340 if @_ % 2
48 273 67 if (exists $args{'arguments'})
49 12 261 if @{$args{'arguments'};} != @{$self->{'arguments'};}
52 124 0 unless defined $args{'arguments'}[$i] or defined $self->{'arguments'}[$i]
54 1 260 unless defined $args{'arguments'}[$i] and defined $self->{'arguments'}[$i]
55 5 255 if $args{'arguments'}[$i] ne $self->{'arguments'}[$i]
60 21 301 defined $args{'cwd'} ? :
61 308 14 $self->cwd eq $cwd ? :
66 0 29 if @_ % 2
71 0 116 unless exists $args{$_}
76 0 29 unless $args{'function'} =~ /^(open|readpipe|system|exec)$/
82 13 16 if ($args{'function'} eq 'open' and $self->return_value)
88 0 13 if (defined $args{'arguments'}[0]) { }