blib/lib/Devel/ebug/Backend/Plugin/Codelines.pm

filter: Statementstmt 64.2% 9 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 2 totaltotal 60.0% 12 / 20 CC 1 SCAR 2.2
CC
1
Cov
64%
codelines
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Devel/ebug/Plugin/Eval.pm ↑ Summary blib/lib/Devel/ebug/Backend/Plugin/Commands.pm »
1 package Devel::ebug::Backend::Plugin::Codelines;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 6 our $VERSION = '0.69'; # VERSION
7  
8 6 ▶sub register_commands {
Subroutine register_commands: called CC=1 SCAR=0.0
Pod undocumented
9 6 return ( codelines => { sub => \&codelines } );
10  
11 }
12  
13 0 ▶sub codelines {
Subroutine codelines: not called CC=1 SCAR=6.9
Pod undocumented
14 0 my($req, $context) = @_;
15 0 my $filename = $req->{filename};
16 0 my @lines = @{$req->{lines}};
17  
18 0 return { codelines => [ DB::fetch_codelines($filename, @lines)] };
19  
20 }
21 6 1;
22  
23 __END__
« lib/Devel/ebug/Plugin/Eval.pm ↑ Summary blib/lib/Devel/ebug/Backend/Plugin/Commands.pm »