File Coverage

blib/lib/Pod/Abstract/Filter/cut.pm
Criterion Covered Total %
statement 9 15 60.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 13 20 65.0


line stmt bran cond sub pod time code
1             package Pod::Abstract::Filter::cut;
2 1     1   1456 use strict;
  1         3  
  1         45  
3 1     1   7 use warnings;
  1         2  
  1         85  
4              
5 1     1   7 use base qw(Pod::Abstract::Filter);
  1         2  
  1         314  
6              
7             our $VERSION = '0.26';
8              
9             =head1 NAME
10              
11             Pod::Abstract::Filter::cut - Remove non-processed (cut) portions of a
12             Pod document.
13              
14             =cut
15              
16             sub filter {
17 0     0 1   my $self = shift;
18 0           my $pa = shift;
19            
20 0           my @cut = $pa->select("//#cut");
21 0           foreach my $cut (@cut) {
22 0           $cut->detach;
23             }
24            
25 0           return $pa;
26             }
27              
28             =head1 AUTHOR
29              
30             Ben Lilburne
31              
32             =head1 COPYRIGHT AND LICENSE
33              
34             Copyright (C) 2009-2025 Ben Lilburne
35              
36             This program is free software; you can redistribute it and/or modify
37             it under the same terms as Perl itself.
38              
39             =cut
40              
41             1;