Tie/LP.pm

filter: Statementstmt 100% 15 / 15 Branchbran 100% 2 / 2 Conditioncond 66.6% 2 / 3 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 92.5% 25 / 27 SCAR 11.0
CC
3
Cov
95%
parse_variable
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« Tie/Plugin.pm ↑ Summary Tie/Plugin/ArrayRef.pm »
1 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Pad::Tie::LP;
5  
6 2 ▶use base 'Lexical::Persistence';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub parse_variable {
9 11 ▶ my ($self, $var) = @_;
Subroutine parse_variable: called CC=3 SCAR=11.0
Pod documented
10  
11 11 my ($sigil, $context, $member) = $self->SUPER::parse_variable($var);
12  
13 11 ▶ if ($context eq '_' and not exists $self->{context}{_}{$member}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($context eq "_" and not exists $self->{"context"}{"_"}{$member}) 1 10 11
Condition66%2/3
$context eq "_" and not exists $self->{"context"}{"_"}{$member}
!ll&&!rl&&r
0101
MC/DC50%1/2
$context eq "_" and not exists $self->{"context"}{"_"}{$member}
$context eq "_" not exists $self->{"context"}{"_"}{$member}
Truth table66%2/3
A and not(B)
A= $context eq "_"B= not exists $self->{"context"}{"_"}{$member}
ABresult
0X0
100
111
14 1 return; # don't auto-vivify _
15 }
16  
17 10 return ($sigil, $context, $member);
18 }
19  
20 2 1;
« Tie/Plugin.pm ↑ Summary Tie/Plugin/ArrayRef.pm »