blib/lib/Git/Raw/Filter/List.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Git/Raw/Filter.pm ↑ Summary blib/lib/Git/Raw/Filter/Source.pm »
1 package Git::Raw::Filter::List;
2 1 $Git::Raw::Filter::List::VERSION = '0.90';
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Git::Raw;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 Git::Raw::Filter::List - Git filter list class
11  
12 =head1 VERSION
13  
14 version 0.90
15  
16 =head1 DESCRIPTION
17  
18 A C<Git::Raw::Filter::List> represents a Git filter list.
19  
20 B<WARNING>: The API of this module is unstable and may change without warning
21 (any change will be appropriately documented in the changelog).
22  
23 =head1 METHODS
24  
25 =head2 load( $repo, $path, $mode )
26  
27 Load the filter list for a given C<$path>. See
28 C<Git::Raw::Filter::Source-E<gt>mode()> for possible value of C<$mode>.
29  
30 =head2 apply_to_blob( $blob )
31  
32 Apply the filter list to C<$blob>. Returns a string containing the filtered
33 content.
34  
35 =head2 apply_to_data( $data )
36  
37 Apply the filter list to C<$data>. Returns a string containing the filtered
38 content.
39  
40 =head2 apply_to_file( $path )
41  
42 Apply the filter list to the file specified by C<$path>. Returns a string
43 containing the filtered content.
44  
45 =head1 AUTHOR
46  
47 Jacques Germishuys <jacquesg@cpan.org>
48  
49 =head1 LICENSE AND COPYRIGHT
50  
51 Copyright 2014 Jacques Germishuys.
52  
53 This program is free software; you can redistribute it and/or modify it
54 under the terms of either: the GNU General Public License as published
55 by the Free Software Foundation; or the Artistic License.
56  
57 See http://dev.perl.org/licenses/ for more information.
58  
59 =cut
60  
61 1 1; # End of Git::Raw::Filter::List
« blib/lib/Git/Raw/Filter.pm ↑ Summary blib/lib/Git/Raw/Filter/Source.pm »