Condition Coverage

blib/lib/Test/Clustericious/Cluster.pm
Criterion Covered Total %
condition 43 73 58.9


and 3 conditions

line !l l&&!r l&&r condition
29 28 0 0 ref $_[0] and eval { do { $_[0]->isa('Test::Mojo') } }
76 0 6 39 $self->{'t'} and @{$self->apps;}
6 0 39 $self->{'t'} and @{$self->apps;} and not $self->{'stopped'}[-1]
171 14 0 0 $self->{'auth_url'} and $self->{'auth_url'}
367 0 9 2 not $app_name =~ /\.psgi$/ and $^O eq 'MSWin32' && -e "$dir/$app_name" || -x "$dir/$app_name"
408 1 21 12 $app and $app->isa('Clustericious::App')
437 0 0 7 not $@ and 'Clustericious::Client'->can('_mojo_user_agent_factory')
461 0 4 0 eval ' use Clustericious; 1 ' and not eval ' use Clustericious 0.9925; 1 '
519 3 0 1 $index == $#{$self->apps;} and $self->{'t'}
575 4 0 1 $index == $#{$self->apps;} and $self->{'t'}

or 2 conditions

line l !l condition
44 1 27 $args->{'lite_path'} //= []
81 31 23 $self->{'extra_ua'} //= [$self->t->ua]

or 3 conditions

line l !l&&r !l&&!r condition
65 52 24 0 $self->{'t'} //= do { my $t = $self->{'t'} = 'Test::Mojo'->new; $self->_update_default_server; $t }
367 0 2 9 $^O eq 'MSWin32' && -e "$dir/$app_name" || -x "$dir/$app_name"
420 3 1 0 $config{'url'} //= $self->url->to_string
468 1 0 3 $self->{'auth_ua'} or $self->{'auth_url'}
513 0 4 0 $test_name //= "stop service $app_name ($index)"
533 4 1 0 $test_name //= "stop service ($index)"
556 0 4 0 $test_name //= "start service $app_name ($index)"
580 4 1 0 $test_name //= "start service ($index)"
596 0 6 0 $test_name //= "servers ($index) is stopped"
611 0 11 0 $test_name //= "servers ($index) is not stopped"
631 24 2 0 $regex //= qr//
639 22 4 0 $caller //= caller
676 4 0 1 $client_class->can('new') or eval " require $client_class; $client_class->isa('Clustericious::Client') "