Condition Coverage

blib/lib/Mojo/SQLite.pm
Criterion Covered Total %
condition 19 29 65.5


and 3 conditions

line !l l&&!r l&&r condition
46 6 6 2 &blessed($str) and $str->isa('Mojo::SQLite')
65 1 0 11 $url->has_recognized_engine and $url->canonical_engine eq 'sqlite'
1 11 0 $url->has_recognized_engine and $url->canonical_engine eq 'sqlite' and ($url->host // '') eq '' || $url->host eq 'localhost'
87 0 1 26 $self->options->{'wal_mode'} and not $self->options->{'no_wal'}
118 0 3 0 ++$self->{'migrated'} and $self->migrations->migrate
13 108 3 not $self->{'migrated'} and $self->auto_migrate

or 2 conditions

line l !l condition
108 106 12 $self->{'queue'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
65 11 0 0 ($url->host // '') eq '' || $url->host eq 'localhost'
79 106 12 0 $self->{'pid'} //= $$
83 27 0 0 'DBI'->connect($self->dsn, undef, undef, $self->options) // croak("DBI connection to @{[$self->dsn];} failed: $DBI::errstr")