Condition Coverage

blib/lib/Gerrit/Client/Test.pm
Criterion Covered Total %
condition 3 48 6.2


and 3 conditions

line !l l&&!r l&&r condition
691 0 0 0 $args{'dir'} and -f "$args{'dir'}/bin/gerrit.war"
891 0 0 0 $message and ref $message
910 0 0 0 $self->git_ok('add', 'testfile') && $self->git_ok(@commit_cmd)

or 2 conditions

line l !l condition
697 0 0 $args{'war'} ||= 'http://gerrit-releases.storage.googleapis.com/gerrit-2.8.5.war'
699 0 0 $args{'user'} ||= 'perl-gerrit-client-test'
896 0 0 $message ||= 'test commit'

or 3 conditions

line l !l&&r !l&&!r condition
142 0 0 0 $password ||= $username
343 0 0 0 $args{'war'} ||= "$Gerrit::Client::Test::CWD/bin/gerrit.war"
367 14 0 0 'IO::File'->new($filename, '>') || croak("open $filename for write: $!")
383 4 0 0 'IO::File'->new($command_file, '>') || croak("open $command_file for write: $!")
432 0 0 0 'IO::File'->new("$command_file.bat", '>') || croak("open $command_file.bat for write: $!")
695 0 0 0 $args{'ssh_port'} ||= _find_available_tcp_port()
696 0 0 0 $args{'http_port'} ||= _find_available_tcp_port()
698 0 0 0 $args{'dir'} ||= 'File::Temp'->newdir('Gerrit-Client-Test.XXXXXX', 'TMPDIR', 1)
853 0 0 0 $$opts{'user'} ||= $$self{'user'}
935 0 0 0 $user ||= $$self{'user'}
1100 0 2 0 $HAVE_GIT //= 0 == system('git', '--version')