| 1 | package Getopt::Kingpin::Arg; | ||||||||||||||||||||||||||||
| 2 | 28 | ▶ | use 5.008001; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 28 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 28 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 28 | ▶ | use Getopt::Kingpin::Base -base; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | 28 | our $VERSION = "0.09"; | |||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | sub help_name { | ||||||||||||||||||||||||||||
| 10 | 92 | ▶ | my $self = shift; | ||||||||||||||||||||||||||
|
Subroutine
help_name: called CC=5 SCAR=16.1
Pod
documented
| |||||||||||||||||||||||||||||
| 11 | 92 | my $mode = shift; | |||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 92 | ▶ | if (not defined $mode) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 14 | 71 | $mode = 0; | |||||||||||||||||||||||||||
| 15 | } | ||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | 92 | my $ret = '<' . $self->name . '>'; | |||||||||||||||||||||||||||
| 18 | 92 | ▶ | if ($mode and $self->is_cumulative) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$mode and $self->is_cumulative
MC/DC100%2/2
$mode and $self->is_cumulative
$mode
$self->is_cumulative
Truth table100%3/3
A and B
A= $modeB= $self->is_cumulative
| |||||||||||||||||||||||||||||
| 19 | 3 | $ret = $ret . '...'; | |||||||||||||||||||||||||||
| 20 | } | ||||||||||||||||||||||||||||
| 21 | 92 | ▶ | if (not $self->_required) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 22 | 18 | $ret = '[' . $ret . ']'; | |||||||||||||||||||||||||||
| 23 | } | ||||||||||||||||||||||||||||
| 24 | 92 | return $ret; | |||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||
| 27 | 28 | 1; | |||||||||||||||||||||||||||
| 28 | __END__ | ||||||||||||||||||||||||||||