lib/Devel/ebug/Plugin/Eval.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 92.5% 25 / 27 CC 2 SCAR 2.9
CC
2
Cov
100%
eval
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Devel/ebug/Backend/Plugin/Ping.pm ↑ Summary blib/lib/Devel/ebug/Backend/Plugin/Codelines.pm »
1 package Devel::ebug::Plugin::Eval;
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(eval yaml);
7  
8 31 our $VERSION = '0.69'; # VERSION
9  
10 # eval
11 25 ▶sub eval {
Subroutine eval: called CC=2 SCAR=6.9
Pod undocumented
12 25 my($self, $eval) = @_;
13 25 my $response = $self->talk({
14 command => "eval",
15 eval => $eval,
16 });
17 return wantarray ? ( $response->{eval}, $response->{exception} ) : ## no critic (Community::Wantarray)
18 22 ▶ $response->{eval};
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 2 20 22
19 }
20  
21 # yaml
22 1 ▶sub yaml {
Subroutine yaml: called CC=1 SCAR=0.0
Pod undocumented
23 1 my($self, $yaml) = @_;
24 1 my $response = $self->talk({
25 command => "yaml",
26 yaml => $yaml,
27 });
28 1 return $response->{yaml};
29 }
30  
31 31 1;
32  
33 __END__
« blib/lib/Devel/ebug/Backend/Plugin/Ping.pm ↑ Summary blib/lib/Devel/ebug/Backend/Plugin/Codelines.pm »