Condition Coverage

blib/lib/Mock/Data/Plugin/Text.pm
Criterion Covered Total %
condition 27 49 55.1


and 3 conditions

line !l l&&!r l&&r condition
34 0 0 33 @_ && ref $_[0] eq 'HASH'
35 0 33 0 $opts && $opts->{'sep'}
36 0 0 33 $opts && $opts->{'source'}
37 0 32 1 $opts && $opts->{'count'}
45 31 1 45 length $buf < $len and !defined($max_len) || length($buf) + length($sep) < $max_len
50 1 4 0 $src_i < $lim and !defined($max_len) || length($buf) + length($sep) < $max_len
54 1 22 10 defined $max_len and length $buf > $max_len
62 0 2 1 @_ && ref $_[0] eq 'HASH'

or 2 conditions

line l !l condition
35 0 33 ($_[0] // $opts && $opts->{'sep'}) // " "
37 1 32 ($_[2] // $opts && $opts->{'count'}) // 1

or 3 conditions

line l !l&&r !l&&!r condition
35 0 0 33 $_[0] // $opts && $opts->{'sep'}
36 0 33 0 $_[1] // $opts && $opts->{'source'}
33 0 0 ($_[1] // $opts && $opts->{'source'}) // Carp::croak("Parameter 'source' is required")
37 0 1 32 $_[2] // $opts && $opts->{'count'}
45 0 45 1 !defined($max_len) || length($buf) + length($sep) < $max_len
50 4 0 0 !defined($max_len) || length($buf) + length($sep) < $max_len
66 0 3 0 $opts{'source'} //= $mockdata->generators->{'word'}