| 1 | package HTML::Mason::Plugin::Context; | ||||||||||
| 2 | 32 | $HTML::Mason::Plugin::Context::VERSION = '1.60'; | |||||||||
| 3 | 32 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 32 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | #------------------------------------------------------------ | ||||||||||
| 7 | |||||||||||
| 8 | package HTML::Mason::Plugin::Context::StartRequest; | ||||||||||
| 9 | 32 | $HTML::Mason::Plugin::Context::StartRequest::VERSION = '1.60'; | |||||||||
| 10 | 32 | ▶ | use base qw(HTML::Mason::Plugin::Context); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 8 | ▶ | sub request { $_[0]->[0] } | ||||||||
|
Subroutine
request: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 0 | ▶ | sub args { | ||||||||
|
Subroutine
args: not called CC=2 SCAR=17.9
| |||||||||||
| 14 | 0 | ▶ | if (wantarray) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | return @{$_[0]->[1]}; | |||||||||
| 16 | } else { | ||||||||||
| 17 | 0 | return $_[0]->[1]; | |||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | #------------------------------------------------------------ | ||||||||||
| 22 | |||||||||||
| 23 | package HTML::Mason::Plugin::Context::EndRequest; | ||||||||||
| 24 | 32 | $HTML::Mason::Plugin::Context::EndRequest::VERSION = '1.60'; | |||||||||
| 25 | 32 | ▶ | use base qw(HTML::Mason::Plugin::Context); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 26 | |||||||||||
| 27 | 8 | ▶ | sub request { $_[0]->[0] } | ||||||||
|
Subroutine
request: called CC=1 SCAR=0.0
| |||||||||||
| 28 | 0 | ▶ | sub args { | ||||||||
|
Subroutine
args: not called CC=2 SCAR=17.9
| |||||||||||
| 29 | 0 | ▶ | if (wantarray) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | 0 | return @{$_[0]->[1]}; | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | return $_[0]->[1]; | |||||||||
| 33 | } | ||||||||||
| 34 | } | ||||||||||
| 35 | 1 | ▶ | sub output { $_[0]->[2] } | ||||||||
|
Subroutine
output: called CC=1 SCAR=0.0
| |||||||||||
| 36 | 0 | ▶ | sub wantarray { $_[0]->[3] } | ||||||||
|
Subroutine
wantarray: not called CC=1 SCAR=6.9
| |||||||||||
| 37 | 2 | ▶ | sub result { $_[0]->[4] } | ||||||||
|
Subroutine
result: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 1 | ▶ | sub error { $_[0]->[5] } | ||||||||
|
Subroutine
error: called CC=1 SCAR=0.0
| |||||||||||
| 39 | |||||||||||
| 40 | #------------------------------------------------------------ | ||||||||||
| 41 | |||||||||||
| 42 | package HTML::Mason::Plugin::Context::StartComponent; | ||||||||||
| 43 | 32 | $HTML::Mason::Plugin::Context::StartComponent::VERSION = '1.60'; | |||||||||
| 44 | 32 | ▶ | use base qw(HTML::Mason::Plugin::Context); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 45 | |||||||||||
| 46 | 0 | ▶ | sub request { $_[0]->[0] } | ||||||||
|
Subroutine
request: not called CC=1 SCAR=6.9
| |||||||||||
| 47 | 41 | ▶ | sub comp { $_[0]->[1] } | ||||||||
|
Subroutine
comp: called CC=1 SCAR=0.0
| |||||||||||
| 48 | 0 | ▶ | sub args { $_[0]->[2] } | ||||||||
|
Subroutine
args: not called CC=1 SCAR=6.9
| |||||||||||
| 49 | |||||||||||
| 50 | #------------------------------------------------------------ | ||||||||||
| 51 | |||||||||||
| 52 | package HTML::Mason::Plugin::Context::EndComponent; | ||||||||||
| 53 | 32 | $HTML::Mason::Plugin::Context::EndComponent::VERSION = '1.60'; | |||||||||
| 54 | 32 | ▶ | use base qw(HTML::Mason::Plugin::Context); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 55 | |||||||||||
| 56 | 0 | ▶ | sub request { $_[0]->[0] } | ||||||||
|
Subroutine
request: not called CC=1 SCAR=6.9
| |||||||||||
| 57 | 43 | ▶ | sub comp { $_[0]->[1] } | ||||||||
|
Subroutine
comp: called CC=1 SCAR=0.0
| |||||||||||
| 58 | 0 | ▶ | sub args { $_[0]->[2] } | ||||||||
|
Subroutine
args: not called CC=1 SCAR=6.9
| |||||||||||
| 59 | 0 | ▶ | sub wantarray { $_[0]->[3] } | ||||||||
|
Subroutine
wantarray: not called CC=1 SCAR=6.9
| |||||||||||
| 60 | 4 | ▶ | sub result { $_[0]->[4] } | ||||||||
|
Subroutine
result: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 2 | ▶ | sub error { $_[0]->[5] } | ||||||||
|
Subroutine
error: called CC=1 SCAR=0.0
| |||||||||||
| 62 | |||||||||||
| 63 | #------------------------------------------------------------ | ||||||||||
| 64 | |||||||||||
| 65 | 32 | 1; | |||||||||
| 66 | |||||||||||
| 67 | __END__ | ||||||||||