| 1 | package Devel::ebug::Backend::Plugin::Basic; | ||||||||||||||||||||||||||||
| 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 (basic => { sub => \&basic }); | |||||||||||||||||||||||||||
| 10 | } | ||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 17 | ▶ | sub basic { | ||||||||||||||||||||||||||
|
Subroutine
basic: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 13 | 17 | my ($req, $context) = @_; | |||||||||||||||||||||||||||
| 14 | return { | ||||||||||||||||||||||||||||
| 15 | codeline => $context->{codeline}, | ||||||||||||||||||||||||||||
| 16 | filename => $context->{filename}, | ||||||||||||||||||||||||||||
| 17 | finished => $context->{finished}, | ||||||||||||||||||||||||||||
| 18 | line => $context->{line}, | ||||||||||||||||||||||||||||
| 19 | package => $context->{package}, | ||||||||||||||||||||||||||||
| 20 | 17 | subroutine => subroutine($req, $context), | |||||||||||||||||||||||||||
| 21 | }; | ||||||||||||||||||||||||||||
| 22 | } | ||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||
| 24 | 17 | ▶ | sub subroutine { | ||||||||||||||||||||||||||
|
Subroutine
subroutine: called CC=5 SCAR=16.1
Pod
undocumented
| |||||||||||||||||||||||||||||
| 25 | 17 | my ($req, $context) = @_; | |||||||||||||||||||||||||||
| 26 | 17 | foreach my $sub (keys %DB::sub) { | |||||||||||||||||||||||||||
| 27 | 22100 | my ($filename, $start, $end) = $DB::sub{$sub} =~ m/^(.+):(\d+)-(\d+)$/; | |||||||||||||||||||||||||||
| 28 | 22100 | ▶ | next if $filename ne $context->{filename}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 29 | 652 | ▶ | next unless $context->{line} >= $start && $context->{line} <= $end; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$context->{"line"} >= $start and $context->{"line"} <= $end
MC/DC100%2/2
$context->{"line"} >= $start and $context->{"line"} <= $end
$context->{"line"} >= $start
$context->{"line"} <= $end
Truth table100%3/3
A and B
A= $context->{"line"} >= $startB= $context->{"line"} <= $end
| |||||||||||||||||||||||||||||
| 30 | 16 | return $sub; | |||||||||||||||||||||||||||
| 31 | } | ||||||||||||||||||||||||||||
| 32 | 1 | return 'main'; | |||||||||||||||||||||||||||
| 33 | } | ||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||
| 35 | 6 | 1; | |||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||
| 37 | __END__ | ||||||||||||||||||||||||||||