Branch Coverage

blib/lib/Math/Formula/Context.pm
Criterion Covered Total %
branch 45 64 70.3


line true false branch
33 0 0 $value ? :
4 0 $value->isa('Math::Formula::Type') ? :
0 4 $value->isa('Math::Formula') ? :
0 4 !builtin::blessed($value) ? :
60 4 !$value ? :
43 0 16 unless my $name = $args->{'name'}
44 1 15 builtin::blessed($name) ? :
59 3 13 if (my $forms = $args->{'formulas'})
60 1 2 ref $forms eq 'ARRAY' ? :
86 0 4 unless my $def = $self->{'MFC_attrs'}{$name}
95 34 7 unless (ref $_[0])
97 0 34 $name =~ s/^#// ? :
101 7 2 if (ref $obj eq 'HASH') { }
2 0 elsif (builtin::blessed($obj) and $obj->isa('Math::Formula')) { }
0 0 elsif (builtin::blessed($obj) and $obj->isa('Math::Formula::Context')) { }
124 1 44 if (ref $name) { }
44 0 elsif (not ref $name and @_) { }
125 1 0 if not @_ and builtin::blessed($name) and $name->isa("Math::Formula")
129 5 38 if @_ == 1 and builtin::blessed($next) and $next->isa("Math::Formula")
132 1 38 if ref $next eq "CODE"
135 13 25 if builtin::blessed($next) and $next->isa("Math::Formula::Type")
138 5 20 @_ == 1 && ref $next eq 'ARRAY' ? :
139 5 20 if (my $r = $attrs{'returns'})
140 0 5 $r->isa('MF::STRING') ? :
144 3 17 if (length(my $leader = $self->lead_expressions))
145 2 1 $data =~ s/^\Q$leader\E// ? :
161 0 1 @_ == 2 ? :
174 0 32 unless length $name
176 3 29 $name =~ /^ctx_/ ? :
177 0 32 unless ($form)
183 0 32 if $claims->{$name}++
209 12 0 $result ? :