Condition Coverage

blib/lib/MarpaX/Languages/C/AST/Callback.pm
Criterion Covered Total %
condition 30 86 34.8


and 3 conditions

line !l l&&!r l&&r condition
64 0 37 0 defined $cb->method and ref $cb->method ne 'ARRAY'
71 0 0 0 not ref $cb->method and $cb->method eq 'auto'
37 0 0 ref $cb->method->[0] ne 'CODE' and (not ref $cb->method and $cb->method eq 'auto')
78 29 8 0 $cb->method_mode ne 'push' and $cb->method_mode ne 'replace'
89 0 38 0 defined $_ and ref $_ eq 'ARRAY'
0 38 0 defined $_ and ref $_ eq 'ARRAY' and ref $$_[0] eq 'CODE' || !ref($$_[0]) && $$_[0] eq 'auto'
255 3 1 1 $condition &&= $_
585 28 0 123 $$prioritized_cb_tofirep[$i] == 0 and not %subscribed
593 28 0 0 $nbSubscription > 0 and (defined $__PACKAGE__::_cacheOptionSubscriptionModep ? $$__PACKAGE__::_cacheOptionSubscriptionModep[$i] : $option->subscriptionMode) eq 'required'
28 0 0 $nbSubscription > 0 and (defined $__PACKAGE__::_cacheOptionSubscriptionModep ? $$__PACKAGE__::_cacheOptionSubscriptionModep[$i] : $option->subscriptionMode) eq 'required' and $nbSubscription != keys %subscribed

or 2 conditions

line l !l condition
159 0 0 $self->firing || 0
179 20 0 $self->hscratchpad('_cache') || 0
394 0 0 $$topic_fired_datap{$cb->description} || []
406 21 0 $topic_fired_datap->{$topic} || []
434 1 0 $level //= 0
688 0 0 $_[2] //= []
690 0 0 $_[3] //= 0

or 3 conditions

line l !l&&r !l&&!r condition
89 9 0 29 ref $$_[0] eq 'CODE' || !ref($$_[0]) && $$_[0] eq 'auto'
217 20 0 0 $__PACKAGE__::_cacheNcb // $_[0]->ncb
218 20 0 0 $__PACKAGE__::_cachePrioritized_cbp // $_[0]->prioritized_cb
219 20 0 0 $__PACKAGE__::_cachePrioritized_cb_tofirep // $_[0]->prioritized_cb_tofire
220 20 0 0 $__PACKAGE__::_cacheArgumentsp // $_[0]->arguments
262 0 0 0 $condition ||= $_
360 32 0 0 $__PACKAGE__::_cacheNcb // $_[0]->ncb
361 32 0 0 $__PACKAGE__::_cachePrioritized_cb_tofirep // $_[0]->prioritized_cb_tofire
362 32 0 0 $__PACKAGE__::_cachePrioritized_cb_firedp // $_[0]->prioritized_cb_fired
363 32 0 0 $__PACKAGE__::_cachePrioritized_cbp // $_[0]->prioritized_cb
364 32 0 0 $__PACKAGE__::_cacheArgumentsp // $_[0]->arguments
489 20 0 0 $__PACKAGE__::_cacheNcb // $_[0]->ncb
501 20 0 0 $__PACKAGE__::_cacheNcb // $_[0]->ncb
546 20 0 0 $__PACKAGE__::_cacheNcb // $_[0]->ncb