| 1 | 6 | ▶ | use 5.008; # utf8 | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 6 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 6 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 6 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | package Path::IsDev::Heuristic::DevDirMarker; | ||||||||||
| 7 | |||||||||||
| 8 | 6 | our $VERSION = '1.001003'; | |||||||||
| 9 | |||||||||||
| 10 | # ABSTRACT: Determine if a path contains a .devdir file | ||||||||||
| 11 | |||||||||||
| 12 | 6 | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | |||||||||
| 13 | |||||||||||
| 14 | |||||||||||
| 15 | |||||||||||
| 16 | |||||||||||
| 17 | |||||||||||
| 18 | |||||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | |||||||||||
| 24 | |||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | |||||||||||
| 28 | |||||||||||
| 29 | 6 | ▶ | use Role::Tiny::With qw( with ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 30 | 6 | with 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::File'; | |||||||||
| 31 | |||||||||||
| 32 | |||||||||||
| 33 | |||||||||||
| 34 | |||||||||||
| 35 | |||||||||||
| 36 | |||||||||||
| 37 | |||||||||||
| 38 | |||||||||||
| 39 | |||||||||||
| 40 | 5 | ▶ | sub files { | ||||||||
|
Subroutine
files: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 41 | 5 | return qw( .devdir ); | |||||||||
| 42 | } | ||||||||||
| 43 | |||||||||||
| 44 | |||||||||||
| 45 | |||||||||||
| 46 | |||||||||||
| 47 | |||||||||||
| 48 | |||||||||||
| 49 | |||||||||||
| 50 | 5 | ▶ | sub matches { | ||||||||
|
Subroutine
matches: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 51 | 5 | my ( $self, $result_object ) = @_; | |||||||||
| 52 | 5 | ▶ | if ( $self->child_exists_any_file( $result_object, $self->files ) ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 53 | 1 | $result_object->result(1); | |||||||||
| 54 | 1 | return 1; | |||||||||
| 55 | } | ||||||||||
| 56 | 4 | return; | |||||||||
| 57 | } | ||||||||||
| 58 | |||||||||||
| 59 | 6 | 1; | |||||||||
| 60 | |||||||||||
| 61 | __END__ | ||||||||||