blib/lib/Brackup/Dict/SQLite.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 20 | 60.0 |
line | true | false | branch |
---|---|---|---|
15 | 0 | 15 | unless my $dbh = $$self{'dbh'} = 'DBI'->connect("dbi:SQLite:dbname=$opts{'file'}", '', '', {'RaiseError', 1, 'PrintError', 0}) |
21 | 0 | 15 | if $@ and not $@ =~ /table \w+ already exists/ |
36 | 15 | 0 | unless ($$self{'_loaded_all'}++) |
52 | 15 | 307 | unless $$self{'_loaded_all'} |
66 | 0 | 145 | unless $$self{'_loaded_all'} |
67 | 11 | 134 | unless $$self{'_loaded_keys'}++ |
68 | 11 | 134 | unless (@{$$self{'keys'};}) |
70 | 11 | 0 | wantarray ? : |
73 | 134 | 0 | wantarray ? : |
85 | 0 | 0 | unless $$self{'_loaded_all'} |