| blib/lib/Config/Model/BackendMgr.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 30 | 53 | 56.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 88 | 112 | 4 | 1 | not $dir->is_dir and $w |
| 116 | 0 | 1 | not $dir->is_dir and $w and $args{'auto_create'} | |
| 314 | 21 | 11 | 69 | not $backend_obj->skip_open and $file_ok |
| 336 | 101 | 0 | 0 | ref $error and $error->isa("Config::Model::Exception::Syntax") |
| 101 | 0 | 0 | ref $error and $error->isa("Config::Model::Exception") | |
| 433 | 36 | 8 | 7 | $rw_config->{'auto_delete'} and not $backend_class->skip_open |
| 473 | 37 | 0 | 0 | $do_backup and $file_path->is_file |
| 490 | 0 | 0 | 0 | ref $error and $error->can("rethrow") |
| 499 | 37 | 0 | 0 | -z $file_path and not -l $file_path |
| line | l | !l | condition |
|---|---|---|---|
| 59 | 0 | 93 | $self->rw_config->{'function'} || 'read' |
| 85 | 34 | 83 | $args{'write'} || 0 |
| 99 | 113 | 0 | "dir: " . $dir // "<undef>" |
| 110 | 41 | 101 | $args{'write'} || 0 |
| 239 | 0 | 0 | $file || '<unknown>' |
| 318 | 0 | 101 | $self->rw_config->{'function'} || 'read' |
| 390 | 0 | 93 | $rw_config->{'function'} || 'write' |
| 450 | 0 | 3 | $args->{'full_dump'} // 0 |
| 467 | 0 | 37 | $backup ||= "old" |
| 505 | 0 | 1 | $self->{'auto_write'}{$type} || 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 239 | 92 | 0 | 7 | $res or $auto_create_override |
| 92 | 7 | 0 | $res or $auto_create_override or $auto_create |