lib/Devel/Trepan/Processor.pm

filter: Statementstmt 66.6% 32 / 48 Branchbran 50.0% 1 / 2 Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 81.8% 9 / 11 Podpod 0.0% 0 / 2 totaltotal 60.8% 42 / 69 CC 3 SCAR 9.3
CC
3
Cov
61%
new
6.0
new
6.0
BEGIN
1.0
CRAP 2.5
« lib/Devel/Trepan/CmdProcessor/Command/Handle.pm ↑ Summary lib/Devel/Trepan/CmdProcessor/Command/Down.pm »
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2012 Rocky Bernstein <rocky@cpan.org>
3  
4 12 ▶use rlib '../..';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 # A debugger command processor. This includes the debugger commands
7 # and ties together the debugger core and I/O interface.
8 package Devel::Trepan::Processor;
9  
10 12 ▶use vars qw(@EXPORT @ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 12 @EXPORT = qw( adjust_frame running_initialize);
12 12 @ISA = qw( Exporter );
13  
14 12 ▶use English qw( -no_match_vars );
Subroutine BEGIN: called CC=1 SCAR=0.0
15 12 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 12 ▶use warnings; no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 12 eval "require Devel::Trepan::DB::Display";
19 12 ▶use Devel::Trepan::Processor::Frame;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 12 ▶use Devel::Trepan::Processor::Running;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 # attr_reader :settings
24 0 ▶sub new($$;$) {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
25 0 ▶ my ($class, $interfaces, $settings) = @_;
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
26 0 ▶ $settings ||= {};
Condition0%0/4
$settings ||= {}
l!l
00
$settings ||= {}
l!l
00
MC/DC0%0/1
$settings ||= {}
$settings
MC/DC0%0/1
$settings ||= {}
$settings
Truth table0%0/2
A
A= $settings
Aresult
11
00
Truth table0%0/2
A
A= $settings
Aresult
11
00
27 0 my $self = {
28 class => $class,
29 interfaces => $interfaces,
30 settings => $settings,
31 gave_stack_trunc_warning => 0,
32 };
33 0 bless ($self, $class);
34 0 return $self;
35 }
36  
37 12 ▶unless (caller) {
Branch: 1 branch
BranchTrueFalseTotal
unless (caller) 0 12 12
38 0 require Devel::Trepan::Interface::User;
39 0 my $intf = Devel::Trepan::Interface::User->new;
40 0 my $proc = __PACKAGE__->new([$intf]);
41 0 print $proc->{class}, "\n";
42 0 require Data::Dumper;
43 0 print Data::Dumper::Dumper($proc->{interfaces});;
44 }
45  
46  
47 12 1;
« lib/Devel/Trepan/CmdProcessor/Command/Handle.pm ↑ Summary lib/Devel/Trepan/CmdProcessor/Command/Down.pm »