blib/lib/B/Hooks/Parser.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Parser.xs ↑ Summary
1 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package B::Hooks::Parser; # git description: v0.20-4-g44a7b86
4 # ABSTRACT: Interface to perl's parser variables
5 # KEYWORDS: perl internals API parser hooks modify
6  
7 3 ▶use B::Hooks::OP::Check;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use parent qw/DynaLoader/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 our $VERSION = '0.21';
11  
12 3 ▶sub dl_load_flags { 0x01 }
Subroutine dl_load_flags: called CC=1 SCAR=0.0
Pod documented
13  
14 3 __PACKAGE__->bootstrap($VERSION);
15  
16 2 ▶sub inject {
Subroutine inject: called CC=1 SCAR=0.0
Pod documented
17 2 my ($code) = @_;
18  
19 2 setup();
20  
21 2 my $line = get_linestr();
22 2 my $offset = get_linestr_offset();
23  
24 2 substr($line, $offset, 0) = $code;
25  
26 2 set_linestr($line);
27  
28 2 return;
29 }
30  
31 3 1;
32  
33 __END__
« Parser.xs ↑ Summary