line |
true |
false |
branch |
20
|
0 |
14 |
ref $class ? : |
27
|
10 |
4 |
if (@_) |
28
|
0 |
4 |
@_ == 1 && ref $_[0] eq 'HASH' ? : |
|
6 |
4 |
@_ == 1 && ref $_[0] eq 'ARRAY' ? : |
32
|
8 |
2 |
if (my $plugins = $args->{'plugins'}) |
34
|
8 |
0 |
ref $plugins ? : |
37
|
3 |
7 |
if $args->{'generators'} |
57
|
0 |
0 |
if ref($_)->can('clone') |
64
|
71 |
0 |
if @_ == 1 |
74
|
0 |
0 |
if @_ > 1 |
81
|
0 |
10 |
if $self->{'_loaded_plugins'}{$name} |
83
|
0 |
10 |
unless ($class->can('apply_mockdata_plugin')) |
85
|
0 |
0 |
unless $class->can('apply_mockdata_plugin') |
89
|
0 |
10 |
unless ref $new and ref($new)->isa('Mock::Data') |
98
|
3 |
6 |
@_ == 1 ? : |
104
|
12 |
10 |
if ($name =~ /::([^:]+)$/ and not defined $self->generators->{$1}) |
113
|
0 |
4 |
@_ == 1 ? : |
118
|
0 |
4 |
if (defined(my $cur = $self->generators->{$name})) |
125
|
4 |
0 |
if ($name =~ /::([^:]+)$/) |
127
|
1 |
3 |
if (defined(my $cur = $self->generators->{$name})) |
140
|
0 |
17 |
unless defined $self->{'generators'}{$name} |
142
|
13 |
4 |
if @_ |
152
|
0 |
0 |
unless defined $gen |
154
|
0 |
0 |
@_ ? : |
161
|
0 |
7 |
unless ref $self |