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 &&= $_
582 28 0 123 $$prioritized_cb_tofirep[$i] == 0 and not %subscribed
590 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
160 0 0 $self->firing || 0
180 20 0 $self->hscratchpad('_cache') || 0
394 0 0 $$topic_fired_datap{$cb->description} || []
406 21 0 $$topic_fired_datap{$topic} || []
436 1 0 $level //= 0
684 0 0 $value //= []
685 0 0 $level //= 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 // $self->ncb
218 20 0 0 $__PACKAGE__::_cachePrioritized_cbp // $self->prioritized_cb
219 20 0 0 $__PACKAGE__::_cachePrioritized_cb_tofirep // $self->prioritized_cb_tofire
220 20 0 0 $__PACKAGE__::_cacheArgumentsp // $self->arguments
262 0 0 0 $condition ||= $_
360 32 0 0 $__PACKAGE__::_cacheNcb // $self->ncb
361 32 0 0 $__PACKAGE__::_cachePrioritized_cb_tofirep // $self->prioritized_cb_tofire
362 32 0 0 $__PACKAGE__::_cachePrioritized_cb_firedp // $self->prioritized_cb_fired
363 32 0 0 $__PACKAGE__::_cachePrioritized_cbp // $self->prioritized_cb
364 32 0 0 $__PACKAGE__::_cacheArgumentsp // $self->arguments
489 20 0 0 $__PACKAGE__::_cacheNcb // $self->ncb
500 20 0 0 $__PACKAGE__::_cacheNcb // $self->ncb
543 20 0 0 $__PACKAGE__::_cacheNcb // $self->ncb