| blib/lib/Remember/Anything/AsPath.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 9 | 11 | 81.8 |
| line | l | !l | condition |
|---|---|---|---|
| 15 | 1 | 1 | $args{'tree_depth'} // 2 |
| 26 | 1 | 1 | $args{'tree_depth'} // 3 |
| 32 | 2 | 0 | $args{'out_dir'} ||= '.' |
| 41 | 2 | 2 | -f join('/', $self->{'out_dir'}, $self->{'_path_parts_of'}->(@_)) // 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 18 | 1 | 0 | 1 | $args{'digest_sub'} // do { croak(q[pass 'digest_sub' which returns path friendly chars as attribute or install 'Digest::SHA' module to use default digest function]) unless eval { do { require Digest::SHA } }; 'Digest::SHA'->import('sha1_hex'); \&Remember::Anything::AsPath::sha1_hex } |