Branch Coverage

blib/lib/Hades/Realm/Compiled/Params.pm
Criterion Covered Total %
branch 54 68 79.4


line true false branch
8 13 2 scalar @_ == 1 ? :
16 11 4 defined $args{$accessor} ? :
17 0 13 unless (not $accessors{$accessor}{'required'} or defined $value)
26 18 4 if (defined $value)
27 4 14 if ((ref $value || '') ne 'ARRAY')
37 2 15 if (not defined $key or ref $key)
38 2 0 defined $key ? :
41 2 13 if (not defined $value or ref $value)
42 2 0 defined $value ? :
52 10 1 if $params[2]{$params[1]}{'type'}[0]
56 4 7 $params[2]{$params[1]}{'default'} ? :
61 0 11 wantarray ? :
66 2 6 unless (ref $mg)
67 2 0 defined $mg ? :
70 2 4 if (not defined $name or ref $name)
71 2 0 defined $name ? :
75 2 2 if ((ref $meta || '') ne 'HASH')
76 2 0 defined $meta ? :
82 0 2 if $meta->{$name}{'private'}
83 2 0 if ($meta->{$name}{'param'})
85 0 2 if $params_explanation
89 1 1 $pm->{'default'} ? :
90 0 2 $types ? :
107 2 17 if (not defined $name or ref $name)
108 2 0 defined $name ? :
112 14 3 if (defined $type)
113 2 12 if (ref $type)
118 4 11 if (defined $value)
119 2 2 if (ref $value)
125 12 1 if ($type)
126 2 10 $value ? :
136 2 2 if ((ref $mg || '') =~ /^(|HASH|ARRAY|SCALAR|CODE|GLOB)$/)
137 2 0 defined $mg ? :
147 0 2 if ($class{'CURRENT'}{'BEGIN'}) { }