| 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 | 15 | ▶ | sub parse_variable { | ||||||||||||||||||||||||||
|
Subroutine
parse_variable: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||||||||||
| 9 | 15 | my ($self, $var) = @_; | |||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | 15 | my ($sigil, $context, $member) = $self->SUPER::parse_variable($var); | |||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 15 | ▶ | if ($context eq '_' and not exists $self->{context}{_}{$member}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$context eq "_" and not exists $self->{"context"}{"_"}{$member}
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}
| |||||||||||||||||||||||||||||
| 14 | 3 | return; # don't auto-vivify _ | |||||||||||||||||||||||||||
| 15 | } | ||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | 12 | return ($sigil, $context, $member); | |||||||||||||||||||||||||||
| 18 | } | ||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | # don't actually ever push arg context | ||||||||||||||||||||||||||||
| 21 | 9 | ▶ | sub push_arg_context { shift->get_context("arg") } | ||||||||||||||||||||||||||
|
Subroutine
push_arg_context: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | # no-op, since we never changed it to begin with | ||||||||||||||||||||||||||||
| 24 | 9 | ▶ | sub pop_arg_context { () } | ||||||||||||||||||||||||||
|
Subroutine
pop_arg_context: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||
| 26 | 2 | 1; | |||||||||||||||||||||||||||