Condition Coverage

blib/lib/Mock/Data/Plugin/Text.pm
Criterion Covered Total %
condition 25 49 51.0


and 3 conditions

line !l l&&!r l&&r condition
31 0 0 3 @_ && ref $_[0] eq 'HASH'
32 0 3 0 $opts && $opts->{'sep'}
33 0 0 3 $opts && $opts->{'source'}
34 0 2 1 $opts && $opts->{'count'}
42 2 0 18 length $buf < $len and !defined($max_len) || length($buf) + length($sep) < $max_len
47 1 4 0 $src_i < $lim and !defined($max_len) || length($buf) + length($sep) < $max_len
51 1 1 1 defined $max_len and length $buf > $max_len
65 0 2 1 @_ && ref $_[0] eq 'HASH'

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
32 0 0 3 $_[0] // $opts && $opts->{'sep'}
33 0 3 0 $_[1] // $opts && $opts->{'source'}
3 0 0 ($_[1] // $opts && $opts->{'source'}) // Carp::croak(q[Parameter 'source' is required])
34 0 1 2 $_[2] // $opts && $opts->{'count'}
42 0 18 0 !defined($max_len) || length($buf) + length($sep) < $max_len
47 4 0 0 !defined($max_len) || length($buf) + length($sep) < $max_len
69 0 3 0 $opts{'source'} //= $mockdata->generators->{'word'}