Condition Coverage

lib/File/Trash.pm
Criterion Covered Total %
condition 7 30 23.3


and 2 conditions

line l !l condition
18 0 1 Carp::cluck('no arguments provided') and return
22 0 0 Carp::cluck('no arguments provided') and return
44 0 0 Carp::cluck('no arguments provided') and return
48 0 0 Carp::cluck('no arguments provided') and return
70 0 0 Carp::cluck('no arguments provided') and return
73 0 0 Carp::cluck('no arguments provided') and return
93 0 1 Carp::cluck("Can't resolve with Cwd::abs_path : '$_[0]'") and return
97 0 3 Carp::cluck("Not a file on disk : '${abs_path}'") and return
135 0 0 warn $File::Trash::errstr = "Can't resolve with Cwd::abs_path : '$_[0]'" and return
138 0 0 warn $File::Trash::errstr = "Not a file on disk : '${abs_path}'" and return
143 0 0 warn $File::Trash::errstr = "$abs_path not in $File::Trash::ABS_TRASH?" and return
165 0 0 warn $File::Trash::errstr = "cant File::Copy::move($abs_path, $abs_to) , $!" and return

and 3 conditions

line !l l&&!r l&&r condition
152 3 0 3 -e $abs_to and warn $File::Trash::errstr = "Restore to already exists: $abs_to, cannot restore."

or 3 conditions

line l !l&&r !l&&!r condition
177 21 3 0 -d $_[0] or File::Path::mkpath($_[0])