File Coverage

lib/App/GitFind/Searcher.pm
Criterion Covered Total %
statement 14 17 82.3
branch 0 4 0.0
condition n/a
subroutine 5 6 83.3
pod 1 1 100.0
total 20 28 71.4


line stmt bran cond sub pod time code
1             # App::GitFind::Searcher - Search for files in a scope - abstract base class
2             package App::GitFind::Searcher;
3              
4 1     1   254496 use 5.010;
  1         3  
5 1     1   3 use strict;
  1         2  
  1         16  
6 1     1   4 use warnings;
  1         1  
  1         43  
7              
8             our $VERSION = '0.000002';
9              
10 1     1   487 use parent 'App::GitFind::Class';
  1         243  
  1         4  
11             #use Class::Tiny qw(TODO);
12              
13 1     1   39 use App::GitFind::Base;
  1         2  
  1         192  
14              
15             # Docs {{{1
16              
17             =head1 NAME
18              
19             App::GitFind::Searcher - Search for files in a particular scope
20              
21             =head1 SYNOPSIS
22              
23             This is an abstract base class. Subclasses search for files in
24             particular scopes.
25              
26             =cut
27              
28             # }}}1
29              
30             =head1 FUNCTIONS
31              
32             =head2 run
33              
34             Conducts a search. Usage:
35              
36             $searcher->run(sub { ... });
37              
38             The only parameter is a callback that will be invoked as:
39              
40             $callback->(TODO);
41              
42             TODO pruning, cancelling?
43              
44             =cut
45              
46             sub run {
47 0 0   0 1   my $self = shift or (require Carp, Carp::croak 'Need an instance');
48 0 0         my $callback = shift or (require Carp, Carp::croak 'Need a callback');
49             ...
50 0           } #run()
51              
52             1;
53             __END__
54             # vi: set fdm=marker: #