Filename | /usr/share/perl5/Authen/CAS/Client/Response.pm |
Statements | Executed 30 statements in 1.70ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 135µs | 426µs | BEGIN@68 | Authen::CAS::Client::Response::AuthFailure::
1 | 1 | 1 | 134µs | 229µs | BEGIN@108 | Authen::CAS::Client::Response::ProxySuccess::
1 | 1 | 1 | 62µs | 171µs | BEGIN@84 | Authen::CAS::Client::Response::Success::
1 | 1 | 1 | 26µs | 137µs | BEGIN@39 | Authen::CAS::Client::Response::Error::
1 | 1 | 1 | 24µs | 139µs | BEGIN@53 | Authen::CAS::Client::Response::Failure::
1 | 1 | 1 | 22µs | 124µs | BEGIN@76 | Authen::CAS::Client::Response::ProxyFailure::
1 | 1 | 1 | 21µs | 25µs | BEGIN@3 | Authen::CAS::Client::
1 | 1 | 1 | 20µs | 279µs | BEGIN@94 | Authen::CAS::Client::Response::AuthSuccess::
1 | 1 | 1 | 10µs | 23µs | BEGIN@4 | Authen::CAS::Client::
0 | 0 | 0 | 0s | 0s | _ATTRIBUTES | Authen::CAS::Client::Response::AuthSuccess::
0 | 0 | 0 | 0s | 0s | iou | Authen::CAS::Client::Response::AuthSuccess::
0 | 0 | 0 | 0s | 0s | proxies | Authen::CAS::Client::Response::AuthSuccess::
0 | 0 | 0 | 0s | 0s | user | Authen::CAS::Client::Response::AuthSuccess::
0 | 0 | 0 | 0s | 0s | _ATTRIBUTES | Authen::CAS::Client::Response::Error::
0 | 0 | 0 | 0s | 0s | error | Authen::CAS::Client::Response::Error::
0 | 0 | 0 | 0s | 0s | new | Authen::CAS::Client::Response::Error::
0 | 0 | 0 | 0s | 0s | _ATTRIBUTES | Authen::CAS::Client::Response::Failure::
0 | 0 | 0 | 0s | 0s | code | Authen::CAS::Client::Response::Failure::
0 | 0 | 0 | 0s | 0s | message | Authen::CAS::Client::Response::Failure::
0 | 0 | 0 | 0s | 0s | new | Authen::CAS::Client::Response::Failure::
0 | 0 | 0 | 0s | 0s | _ATTRIBUTES | Authen::CAS::Client::Response::ProxySuccess::
0 | 0 | 0 | 0s | 0s | proxy_ticket | Authen::CAS::Client::Response::ProxySuccess::
0 | 0 | 0 | 0s | 0s | new | Authen::CAS::Client::Response::Success::
0 | 0 | 0 | 0s | 0s | _ATTRIBUTES | Authen::CAS::Client::Response::
0 | 0 | 0 | 0s | 0s | doc | Authen::CAS::Client::Response::
0 | 0 | 0 | 0s | 0s | is_error | Authen::CAS::Client::Response::
0 | 0 | 0 | 0s | 0s | is_failure | Authen::CAS::Client::Response::
0 | 0 | 0 | 0s | 0s | is_success | Authen::CAS::Client::Response::
0 | 0 | 0 | 0s | 0s | new | Authen::CAS::Client::Response::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 1 | 87µs | require 5.006_001; | ||
2 | |||||
3 | 3 | 33µs | 2 | 30µs | # spent 25µs (21+5) within Authen::CAS::Client::BEGIN@3 which was called:
# once (21µs+5µs) by Authen::CAS::Client::BEGIN@8 at line 3 # spent 25µs making 1 call to Authen::CAS::Client::BEGIN@3
# spent 5µs making 1 call to strict::import |
4 | 3 | 309µs | 2 | 37µs | # spent 23µs (10+13) within Authen::CAS::Client::BEGIN@4 which was called:
# once (10µs+13µs) by Authen::CAS::Client::BEGIN@8 at line 4 # spent 23µs making 1 call to Authen::CAS::Client::BEGIN@4
# spent 13µs making 1 call to warnings::import |
5 | |||||
6 | #====================================================================== | ||||
7 | # Authen::CAS::Client::Response | ||||
8 | # | ||||
9 | package Authen::CAS::Client::Response; | ||||
10 | |||||
11 | 1 | 1µs | our $VERSION = '0.03'; | ||
12 | |||||
13 | sub _ATTRIBUTES () { _ok => undef, doc => undef } | ||||
14 | |||||
15 | sub new { | ||||
16 | my ( $class, %args ) = @_; | ||||
17 | |||||
18 | my %self = $class->_ATTRIBUTES; | ||||
19 | for my $attribute ( keys %self ) { | ||||
20 | $self{$attribute} = $args{$attribute} | ||||
21 | if exists $args{$attribute}; | ||||
22 | } | ||||
23 | |||||
24 | bless \%self, $class | ||||
25 | } | ||||
26 | |||||
27 | sub is_error { my ( $self ) = @_; ! defined $self->{_ok} } | ||||
28 | sub is_failure { my ( $self ) = @_; defined $self->{_ok} && ! $self->{_ok} } | ||||
29 | sub is_success { my ( $self ) = @_; defined $self->{_ok} && $self->{_ok} } | ||||
30 | |||||
31 | sub doc { my ( $self ) = @_; $self->{doc} } | ||||
32 | |||||
33 | |||||
34 | #====================================================================== | ||||
35 | # Authen::CAS::Client::Response::Error | ||||
36 | # | ||||
37 | package Authen::CAS::Client::Response::Error; | ||||
38 | |||||
39 | 3 | 185µs | 2 | 249µs | # spent 137µs (26+112) within Authen::CAS::Client::Response::Error::BEGIN@39 which was called:
# once (26µs+112µs) by Authen::CAS::Client::BEGIN@8 at line 39 # spent 137µs making 1 call to Authen::CAS::Client::Response::Error::BEGIN@39
# spent 112µs making 1 call to base::import |
40 | |||||
41 | sub _ATTRIBUTES () { error => 'An internal error occurred', $_[0]->SUPER::_ATTRIBUTES } | ||||
42 | |||||
43 | sub new { my $class = shift; $class->SUPER::new( @_, _ok => undef ) } | ||||
44 | |||||
45 | sub error { my ( $self ) = @_; $self->{error} } | ||||
46 | |||||
47 | |||||
48 | #====================================================================== | ||||
49 | # Authen::CAS::Client::Response::Failure | ||||
50 | # | ||||
51 | package Authen::CAS::Client::Response::Failure; | ||||
52 | |||||
53 | 3 | 356µs | 2 | 255µs | # spent 139µs (24+116) within Authen::CAS::Client::Response::Failure::BEGIN@53 which was called:
# once (24µs+116µs) by Authen::CAS::Client::BEGIN@8 at line 53 # spent 139µs making 1 call to Authen::CAS::Client::Response::Failure::BEGIN@53
# spent 116µs making 1 call to base::import |
54 | |||||
55 | sub _ATTRIBUTES () { code => undef, message => '', $_[0]->SUPER::_ATTRIBUTES } | ||||
56 | |||||
57 | sub new { my $class = shift; $class->SUPER::new( @_, _ok => 0 ) } | ||||
58 | |||||
59 | sub code { my ( $self ) = @_; $self->{code} } | ||||
60 | sub message { my ( $self ) = @_; $self->{message} } | ||||
61 | |||||
62 | |||||
63 | #====================================================================== | ||||
64 | # Authen::CAS::Client::Response::AuthFailure | ||||
65 | # | ||||
66 | package Authen::CAS::Client::Response::AuthFailure; | ||||
67 | |||||
68 | 3 | 81µs | 2 | 716µs | # spent 426µs (135+291) within Authen::CAS::Client::Response::AuthFailure::BEGIN@68 which was called:
# once (135µs+291µs) by Authen::CAS::Client::BEGIN@8 at line 68 # spent 426µs making 1 call to Authen::CAS::Client::Response::AuthFailure::BEGIN@68
# spent 291µs making 1 call to base::import |
69 | |||||
70 | |||||
71 | #====================================================================== | ||||
72 | # Authen::CAS::Client::Response::ProxyFailure | ||||
73 | # | ||||
74 | package Authen::CAS::Client::Response::ProxyFailure; | ||||
75 | |||||
76 | 3 | 113µs | 2 | 226µs | # spent 124µs (22+102) within Authen::CAS::Client::Response::ProxyFailure::BEGIN@76 which was called:
# once (22µs+102µs) by Authen::CAS::Client::BEGIN@8 at line 76 # spent 124µs making 1 call to Authen::CAS::Client::Response::ProxyFailure::BEGIN@76
# spent 102µs making 1 call to base::import |
77 | |||||
78 | |||||
79 | #====================================================================== | ||||
80 | # Authen::CAS::Client::Response::Success | ||||
81 | # | ||||
82 | package Authen::CAS::Client::Response::Success; | ||||
83 | |||||
84 | 3 | 133µs | 2 | 280µs | # spent 171µs (62+109) within Authen::CAS::Client::Response::Success::BEGIN@84 which was called:
# once (62µs+109µs) by Authen::CAS::Client::BEGIN@8 at line 84 # spent 171µs making 1 call to Authen::CAS::Client::Response::Success::BEGIN@84
# spent 109µs making 1 call to base::import |
85 | |||||
86 | sub new { my $class = shift; $class->SUPER::new( @_, _ok => 1 ) } | ||||
87 | |||||
88 | |||||
89 | #====================================================================== | ||||
90 | # Authen::CAS::Client::Response::AuthSuccess | ||||
91 | # | ||||
92 | package Authen::CAS::Client::Response::AuthSuccess; | ||||
93 | |||||
94 | 3 | 242µs | 2 | 538µs | # spent 279µs (20+259) within Authen::CAS::Client::Response::AuthSuccess::BEGIN@94 which was called:
# once (20µs+259µs) by Authen::CAS::Client::BEGIN@8 at line 94 # spent 279µs making 1 call to Authen::CAS::Client::Response::AuthSuccess::BEGIN@94
# spent 259µs making 1 call to base::import |
95 | |||||
96 | sub _ATTRIBUTES () { user => undef, iou => undef, proxies => [ ], $_[0]->SUPER::_ATTRIBUTES } | ||||
97 | |||||
98 | sub user { my ( $self ) = @_; $self->{user} } | ||||
99 | sub iou { my ( $self ) = @_; $self->{iou} } | ||||
100 | sub proxies { my ( $self ) = @_; wantarray ? @{ $self->{proxies} } : [ @{ $self->{proxies} } ] } | ||||
101 | |||||
102 | |||||
103 | #====================================================================== | ||||
104 | # Authen::CAS::Client::Response::ProxySuccess | ||||
105 | # | ||||
106 | package Authen::CAS::Client::Response::ProxySuccess; | ||||
107 | |||||
108 | 3 | 157µs | 2 | 323µs | # spent 229µs (134+94) within Authen::CAS::Client::Response::ProxySuccess::BEGIN@108 which was called:
# once (134µs+94µs) by Authen::CAS::Client::BEGIN@8 at line 108 # spent 229µs making 1 call to Authen::CAS::Client::Response::ProxySuccess::BEGIN@108
# spent 94µs making 1 call to base::import |
109 | |||||
110 | sub _ATTRIBUTES () { proxy_ticket => undef, $_[0]->SUPER::_ATTRIBUTES } | ||||
111 | |||||
112 | sub proxy_ticket { my ( $self ) = @_; $self->{proxy_ticket} } | ||||
113 | |||||
114 | |||||
115 | 1 | 7µs | 1 | ||
116 | __END__ |