| line |
true |
false |
branch |
|
20
|
20 |
0 |
if @_ |
|
26
|
44 |
130 |
if $val |
|
34
|
1 |
19 |
unless $_[0]->_closed |
|
39
|
0 |
20 |
unless ref $self |
|
47
|
12 |
8 |
if -f $path |
|
48
|
4 |
16 |
if (exists $$opt{'backup_dir'}) |
|
49
|
0 |
4 |
unless (-d $$opt{'backup_dir'}) |
|
55
|
20 |
0 |
$self->SUPER::open($temp, $mode) ? : |
|
63
|
19 |
20 |
if @_ |
|
69
|
0 |
19 |
unless &File::Sync::fsync($self) |
|
70
|
19 |
0 |
unless ($self->_closed(1)) |
|
71
|
19 |
0 |
if ($self->SUPER::close) { } |
|
73
|
3 |
16 |
if $self->_backup_dir and -f $self->_target_file |
|
75
|
0 |
0 |
$die ? : |
|
|
0 |
19 |
unless rename $self->_temp_file, $self->_target_file |
|
78
|
0 |
0 |
$die ? : |
|
104
|
3 |
0 |
$n == 0 ? : |
|
112
|
3 |
0 |
unless -f $backup_file |
|
115
|
0 |
3 |
if -f $backup_file |
|
123
|
0 |
0 |
unless ($self->_closed(1)) |
|
132
|
0 |
0 |
unless $self->_closed(1) |
|
139
|
0 |
15 |
unless File::Copy::copy($from, $to) |