File Coverage

blib/lib/Devel/StackTrace/WithLexicals/Frame.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 0 3 0.0
total 27 30 90.0


line stmt bran cond sub pod time code
1             package Devel::StackTrace::WithLexicals::Frame;
2 7     7   44 use strict;
  7         14  
  7         549  
3 7     7   42 use warnings;
  7         15  
  7         204  
4 7     7   37 use Devel::StackTrace;
  7         14  
  7         166  
5 7     7   37 use base 'Devel::StackTraceFrame';
  7         13  
  7         8555  
6              
7             sub new {
8 19     19 0 5316 my $class = shift;
9 19         107 my %args = @_;
10              
11 19         151 my $self = $class->SUPER::new(
12             $args{caller},
13             $args{args},
14             $args{respect_overload},
15             $args{max_arg_length},
16             $args{message},
17             $args{indent},
18             );
19              
20 19         612 $self->{lexicals} = $args{lexicals};
21              
22 19         68 return $self;
23             }
24              
25 23     23 0 4811 sub lexicals { shift->{lexicals} }
26              
27             sub lexical {
28 1     1 0 9 my $self = shift;
29 1         5 return $self->lexicals->{$_[0]};
30             }
31              
32             1;
33