Condition Coverage

blib/lib/Footprintless/Plugin/Database/AbstractProvider.pm
Criterion Covered Total %
condition 2 13 15.3


or 2 conditions

line l !l condition
162 0 0 $self->{'tunnel'}->get_local_hostname || 'localhost'
180 0 7 $entity->{'hostname'} || 'localhost'

or 3 conditions

line l !l&&r !l&&!r condition
52 0 0 0 $in_handle || $in_file
88 5 0 0 'DBI'->connect($self->_connection_string, $self->{'username'}, $self->{'password'}, {'RaiseError', 1, 'AutoCommit', 1}) || croak("unable to connect to $hostname on port ${port}: $@")
106 0 0 0 $self->{'tunnel_destination_hostname'} || $self->{'hostname'}