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

filter: Statementstmt 56.2% 9 / 16 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 2 totaltotal 50.0% 12 / 24 CC 3 SCAR 18.7
CC
3
Cov
50%
filenames
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.5
« lib/Devel/ebug/Plugin/StackTrace.pm ↑ Summary blib/lib/Devel/ebug/Backend/Plugin/ActionPoints.pm »
1 package Devel::ebug::Backend::Plugin::Filenames;
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 ( filenames => { sub => \&filenames } );
10  
11 }
12  
13 0 ▶sub filenames {
Subroutine filenames: not called CC=3 SCAR=24.8
Pod undocumented
14 0 my($req, $context) = @_;
15 0 my %filenames;
16 0 foreach my $sub (keys %DB::sub) {
17 0 my($filename, $start, $end) = $DB::sub{$sub} =~ m/^(.+):(\d+)-(\d+)$/;
18 0 ▶ next if $filename =~ /^\(eval/;
Branch: 1 branch
BranchTrueFalseTotal
if $filename =~ /^\(eval/ 0 0 0
19 0 $filenames{$filename}++;
20 }
21 0 return { filenames => [sort keys %filenames] };
22 }
23 6 1;
24  
25 __END__
« lib/Devel/ebug/Plugin/StackTrace.pm ↑ Summary blib/lib/Devel/ebug/Backend/Plugin/ActionPoints.pm »