| 1 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 2 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | |||||||||||||||||||||
| 4 | package Pad::Tie::Plugin; | ||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 1 | ▶ | use Data::OptList; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | # input: ( [ foo => { -as => 'bar' } ], ... ) | ||||||||||||||||||||
| 9 | # return: { foo => 'bar', ... } | ||||||||||||||||||||
| 10 | sub canon_args { | ||||||||||||||||||||
| 11 | 5 | ▶ | my ($plugin, $args) = @_; | ||||||||||||||||||
|
Subroutine
canon_args: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 5 | my %n; | |||||||||||||||||||
| 14 | 5 | my @args = @{ Data::OptList::mkopt($args) }; | |||||||||||||||||||
| 15 | 5 | for (@args) { | |||||||||||||||||||
| 16 | 5 | my ($method, $xtra) = @$_; | |||||||||||||||||||
| 17 | 5 | ▶ | my $name = $xtra->{-as} || $method; | ||||||||||||||||||
|
Condition66%2/3
$xtra->{'-as'} || $method
MC/DC0%0/2
$xtra->{'-as'} || $method
$xtra->{'-as'}
$method
Truth table66%2/3
A || B
A= $xtra->{'-as'}B= $method
| |||||||||||||||||||||
| 18 | #$name = "$xtra->{-prefix}$name" if $xtra->{-prefix}; | ||||||||||||||||||||
| 19 | 5 | $n{$method} = $name; | |||||||||||||||||||
| 20 | } | ||||||||||||||||||||
| 21 | 5 | return \%n; | |||||||||||||||||||
| 22 | } | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 1 | 1; | |||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | __END__ | ||||||||||||||||||||