Condition Coverage

blib/lib/App/Maisha/Shell.pm
Criterion Covered Total %
condition 1 60 1.6


and 3 conditions

line !l l&&!r l&&r condition
243 0 0 0 $service and $service->can('users')
402 0 0 0 @_ && $_[0] =~ /^from|to$/
416 0 0 0 $@ || !$ret and $self->error =~ /This application is not allowed to access or delete your direct messages/
427 0 0 0 $max_id and $max_id == $$ret[-1]{'id'}
466 0 0 0 defined $mess and $mess =~ /\S/
689 0 0 0 $handler and $$handler =~ /^(comp|help|smry)_/
690 0 0 0 $cmd and $$cmd =~ /^(q|quit)$/
699 0 0 0 $file and -f $file
766 0 0 0 $max_id and $max_id == $$ret[-1]{'id'}
797 0 0 0 $max_id and $max_id == $$ret[-1]{'id'}
828 0 0 0 $max_id and $max_id == $$ret[-1]{'id'}
847 0 0 0 defined $services and @$services
875 0 0 0 defined $services and @$services
906 0 0 0 $limit and $limit < scalar @recs

or 2 conditions

line l !l condition
242 0 0 $$services[0] || (return)
941 0 0 $text ||= ''
983 2 0 $plugins{$class} || undef

or 3 conditions

line l !l&&r !l&&!r condition
416 0 0 0 $@ || !$ret
939 0 0 0 $$mess{'screen_name'} || $$mess{'from_user'}
940 0 0 0 $$mess{'status'}{'text'} || $$mess{'text'}
957 0 0 0 $limit ||= $default