lib/Devel/ebug/Plugin/Basic.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 96.3% 26 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« bin/ebug ↑ Summary corpus/calc.pl »
1 package Devel::ebug::Plugin::Basic;
2  
3 31 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 31 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 31 ▶use base qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 31 our @EXPORT = qw(basic);
7  
8 31 our $VERSION = '0.69'; # VERSION
9  
10 # get basic debugging information
11 142 ▶sub basic {
Subroutine basic: called CC=1 SCAR=0.0
Pod undocumented
12 142 my ($self) = @_;
13 142 _basic_response($self, $self->talk({ command => "basic" }));
14 }
15  
16 # record where the debuggee is, from the answer to a basic request
17 186 ▶sub _basic_response {
Subroutine _basic_response: called CC=1 SCAR=0.0
18 186 my ($self, $response) = @_;
19 186 $self->codeline($response->{codeline});
20 186 $self->filename($response->{filename});
21 186 $self->finished($response->{finished});
22 186 $self->line($response->{line});
23 186 $self->package($response->{package});
24 186 $self->subroutine($response->{subroutine});
25 }
26  
27 31 1;
28  
29 __END__
« bin/ebug ↑ Summary corpus/calc.pl »