Pugs/Grammar/Pod.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Pugs::Grammar::Pod;
2 use strict;
3 use warnings;
4 use base qw(Pugs::Grammar::BaseCategory);
5  
6 # XXX - this module is currently unused
7 # XXX - see Pugs::Grammar::BaseCategory ws()
8  
9 # placeholder for the Pod grammar
10  
11 # XXX Pod can only start at a line start
12  
13 BEGIN {
14 __PACKAGE__->add_rule(
15 "=begin" => q(
16 #{ print "pod - $_[0]\n" }
17 .* \n \= end .*? \n
18
19 {
20 return { pod_block => $() ,}
21 }
22 ) );
23 __PACKAGE__->recompile;
24 }
25  
26  
27 1;