Github/User.pm

filter: Statementstmt 28.5% 20 / 70 Branchbran 0.0% 0 / 36 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 14.2% 6 / 42 Podpod 100% 36 / 36 totaltotal 31.9% 62 / 194 CC 21 SCAR 18.0
CC
21
Cov
18%
created_at
20.0
updated_at
20.0
avatar_url
6.0
CRAP 6.0
« Github/Repository.pm ↑ Summary Github/Common.pm »
1 package Net::Async::Github::User;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 our $VERSION = '0.013'; # VERSION
7  
8 4 ▶use parent qw(Net::Async::Github::Common);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =head1 NAME
11  
12 Net::Async::Github::User
13  
14 =head1 DESCRIPTION
15  
16 Autogenerated module.
17  
18 =cut
19  
20 4 ▶use URI::Template ();
Subroutine BEGIN: called CC=1 SCAR=0.0
21 4 ▶use Time::Moment ();
Subroutine BEGIN: called CC=1 SCAR=0.0
22 4 ▶use Net::Async::Github::Plan ();
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 =head1 METHODS
25  
26 =cut
27  
28 =head2 login
29  
30 Provides an accessor for C<login>.
31  
32 =cut
33  
34 0 ▶sub login {
Subroutine login: not called CC=1 SCAR=6.9
Pod documented
35 shift->{login}
36 0 }
37  
38 =head2 id
39  
40 Provides an accessor for C<id>.
41  
42 =cut
43  
44 0 ▶sub id {
Subroutine id: not called CC=1 SCAR=6.9
Pod documented
45 shift->{id}
46 0 }
47  
48 =head2 avatar_url
49  
50 Provides an accessor for C<avatar_url>.
51  
52 =cut
53  
54 0 ▶sub avatar_url {
Subroutine avatar_url: not called CC=2 SCAR=17.9
Pod documented
55 $_[0]->{avatar_url} =
56 URI::Template->new($_[0]->{avatar_url})
57 0 ▶ unless ref $_[0]->{avatar_url};
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0]{"avatar_url"} 0 0 0
58 shift->{avatar_url}
59 0 }
60  
61 =head2 gravatar_id
62  
63 Provides an accessor for C<gravatar_id>.
64  
65 =cut
66  
67 0 ▶sub gravatar_id {
Subroutine gravatar_id: not called CC=1 SCAR=6.9
Pod documented
68 shift->{gravatar_id}
69 0 }
70  
71 =head2 url
72  
73 Provides an accessor for C<url>.
74  
75 =cut
76  
77 0 ▶sub url {
Subroutine url: not called CC=1 SCAR=6.9
Pod documented
78 shift->{url}
79 0 }
80  
81 =head2 html_url
82  
83 Provides an accessor for C<html_url>.
84  
85 =cut
86  
87 0 ▶sub html_url {
Subroutine html_url: not called CC=2 SCAR=17.9
Pod documented
88 $_[0]->{html_url} =
89 URI::Template->new($_[0]->{html_url})
90 0 ▶ unless ref $_[0]->{html_url};
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0]{"html_url"} 0 0 0
91 shift->{html_url}
92 0 }
93  
94 =head2 followers_url
95  
96 Provides an accessor for C<followers_url>.
97  
98 =cut
99  
100 0 ▶sub followers_url {
Subroutine followers_url: not called CC=2 SCAR=17.9
Pod documented
101 $_[0]->{followers_url} =
102 URI::Template->new($_[0]->{followers_url})
103 0 ▶ unless ref $_[0]->{followers_url};
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0]{"followers_url"} 0 0 0
104 shift->{followers_url}
105 0 }
106  
107 =head2 following_url
108  
109 Provides an accessor for C<following_url>.
110  
111 =cut
112  
113 0 ▶sub following_url {
Subroutine following_url: not called CC=2 SCAR=17.9
Pod documented
114 $_[0]->{following_url} =
115 URI::Template->new($_[0]->{following_url})
116 0 ▶ unless ref $_[0]->{following_url};
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0]{"following_url"} 0 0 0
117 shift->{following_url}
118 0 }
119  
120 =head2 gists_url
121  
122 Provides an accessor for C<gists_url>.
123  
124 =cut
125  
126 0 ▶sub gists_url {
Subroutine gists_url: not called CC=2 SCAR=17.9
Pod documented
127 $_[0]->{gists_url} =
128 URI::Template->new($_[0]->{gists_url})
129 0 ▶ unless ref $_[0]->{gists_url};
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0]{"gists_url"} 0 0 0
130 shift->{gists_url}
131 0 }
132  
133 =head2 starred_url
134  
135 Provides an accessor for C<starred_url>.
136  
137 =cut
138  
139 0 ▶sub starred_url {
Subroutine starred_url: not called CC=2 SCAR=17.9
Pod documented
140 $_[0]->{starred_url} =
141 URI::Template->new($_[0]->{starred_url})
142 0 ▶ unless ref $_[0]->{starred_url};
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0]{"starred_url"} 0 0 0
143 shift->{starred_url}
144 0 }
145  
146 =head2 subscriptions_url
147  
148 Provides an accessor for C<subscriptions_url>.
149  
150 =cut
151  
152 0 ▶sub subscriptions_url {
Subroutine subscriptions_url: not called CC=2 SCAR=17.9
Pod documented
153 $_[0]->{subscriptions_url} =
154 URI::Template->new($_[0]->{subscriptions_url})
155 0 ▶ unless ref $_[0]->{subscriptions_url};
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0]{"subscriptions_url"} 0 0 0
156 shift->{subscriptions_url}
157 0 }
158  
159 =head2 organizations_url
160  
161 Provides an accessor for C<organizations_url>.
162  
163 =cut
164  
165 0 ▶sub organizations_url {
Subroutine organizations_url: not called CC=2 SCAR=17.9
Pod documented
166 $_[0]->{organizations_url} =
167 URI::Template->new($_[0]->{organizations_url})
168 0 ▶ unless ref $_[0]->{organizations_url};
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0]{"organizations_url"} 0 0 0
169 shift->{organizations_url}
170 0 }
171  
172 =head2 repos_url
173  
174 Provides an accessor for C<repos_url>.
175  
176 =cut
177  
178 0 ▶sub repos_url {
Subroutine repos_url: not called CC=2 SCAR=17.9
Pod documented
179 $_[0]->{repos_url} =
180 URI::Template->new($_[0]->{repos_url})
181 0 ▶ unless ref $_[0]->{repos_url};
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0]{"repos_url"} 0 0 0
182 shift->{repos_url}
183 0 }
184  
185 =head2 events_url
186  
187 Provides an accessor for C<events_url>.
188  
189 =cut
190  
191 0 ▶sub events_url {
Subroutine events_url: not called CC=2 SCAR=17.9
Pod documented
192 $_[0]->{events_url} =
193 URI::Template->new($_[0]->{events_url})
194 0 ▶ unless ref $_[0]->{events_url};
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0]{"events_url"} 0 0 0
195 shift->{events_url}
196 0 }
197  
198 =head2 received_events_url
199  
200 Provides an accessor for C<received_events_url>.
201  
202 =cut
203  
204 0 ▶sub received_events_url {
Subroutine received_events_url: not called CC=2 SCAR=17.9
Pod documented
205 $_[0]->{received_events_url} =
206 URI::Template->new($_[0]->{received_events_url})
207 0 ▶ unless ref $_[0]->{received_events_url};
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0]{"received_events_url"} 0 0 0
208 shift->{received_events_url}
209 0 }
210  
211 =head2 type
212  
213 Provides an accessor for C<type>.
214  
215 =cut
216  
217 0 ▶sub type {
Subroutine type: not called CC=1 SCAR=6.9
Pod documented
218 shift->{type}
219 0 }
220  
221 =head2 site_admin
222  
223 Provides an accessor for C<site_admin>.
224  
225 =cut
226  
227 0 ▶sub site_admin {
Subroutine site_admin: not called CC=2 SCAR=17.9
Pod documented
228 shift->{site_admin}
229 0 ▶ ? 1 : 0
Branch: 1 branch
BranchTrueFalseTotal
+(shift())->{'site_admin'} ? : 0 0 0
230 }
231  
232 =head2 name
233  
234 Provides an accessor for C<name>.
235  
236 =cut
237  
238 0 ▶sub name {
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
239 shift->{name}
240 0 }
241  
242 =head2 company
243  
244 Provides an accessor for C<company>.
245  
246 =cut
247  
248 0 ▶sub company {
Subroutine company: not called CC=1 SCAR=6.9
Pod documented
249 shift->{company}
250 0 }
251  
252 =head2 blog
253  
254 Provides an accessor for C<blog>.
255  
256 =cut
257  
258 0 ▶sub blog {
Subroutine blog: not called CC=1 SCAR=6.9
Pod documented
259 shift->{blog}
260 0 }
261  
262 =head2 location
263  
264 Provides an accessor for C<location>.
265  
266 =cut
267  
268 0 ▶sub location {
Subroutine location: not called CC=1 SCAR=6.9
Pod documented
269 shift->{location}
270 0 }
271  
272 =head2 email
273  
274 Provides an accessor for C<email>.
275  
276 =cut
277  
278 0 ▶sub email {
Subroutine email: not called CC=1 SCAR=6.9
Pod documented
279 shift->{email}
280 0 }
281  
282 =head2 hireable
283  
284 Provides an accessor for C<hireable>.
285  
286 =cut
287  
288 0 ▶sub hireable {
Subroutine hireable: not called CC=2 SCAR=17.9
Pod documented
289 shift->{hireable}
290 0 ▶ ? 1 : 0
Branch: 1 branch
BranchTrueFalseTotal
+(shift())->{'hireable'} ? : 0 0 0
291 }
292  
293 =head2 bio
294  
295 Provides an accessor for C<bio>.
296  
297 =cut
298  
299 0 ▶sub bio {
Subroutine bio: not called CC=1 SCAR=6.9
Pod documented
300 shift->{bio}
301 0 }
302  
303 =head2 public_repos
304  
305 Provides an accessor for C<public_repos>.
306  
307 =cut
308  
309 0 ▶sub public_repos {
Subroutine public_repos: not called CC=1 SCAR=6.9
Pod documented
310 shift->{public_repos}
311 0 }
312  
313 =head2 public_gists
314  
315 Provides an accessor for C<public_gists>.
316  
317 =cut
318  
319 0 ▶sub public_gists {
Subroutine public_gists: not called CC=1 SCAR=6.9
Pod documented
320 shift->{public_gists}
321 0 }
322  
323 =head2 followers
324  
325 Provides an accessor for C<followers>.
326  
327 =cut
328  
329 0 ▶sub followers {
Subroutine followers: not called CC=1 SCAR=6.9
Pod documented
330 shift->{followers}
331 0 }
332  
333 =head2 following
334  
335 Provides an accessor for C<following>.
336  
337 =cut
338  
339 0 ▶sub following {
Subroutine following: not called CC=1 SCAR=6.9
Pod documented
340 shift->{following}
341 0 }
342  
343 =head2 created_at
344  
345 Provides an accessor for C<created_at>.
346  
347 =cut
348  
349 0 ▶sub created_at {
Subroutine created_at: not called CC=4 SCAR=30.0
Pod documented
350 $_[0]->{created_at} =
351 (defined($_[0]->{created_at}) && length($_[0]->{created_at}) ? Time::Moment->from_string($_[0]->{created_at}) : undef)
352 0 ▶ unless ref $_[0]->{created_at};
Branch: 2 branches
BranchTrueFalseTotal
unless ref $_[0]{"created_at"} 0 0 0
defined $_[0]{'created_at'} && length $_[0]{'created_at'} ? : 0 0 0
Condition0%0/3
defined $_[0]{"created_at"} and length $_[0]{"created_at"}
!ll&&!rl&&r
000
MC/DC0%0/2
defined $_[0]{"created_at"} and length $_[0]{"created_at"}
defined $_[0]{"created_at"} length $_[0]{"created_at"}
Truth table0%0/3
A and B
A= defined $_[0]{"created_at"}B= length $_[0]{"created_at"}
ABresult
0X0
100
111
353 shift->{created_at}
354 0 }
355  
356 =head2 updated_at
357  
358 Provides an accessor for C<updated_at>.
359  
360 =cut
361  
362 0 ▶sub updated_at {
Subroutine updated_at: not called CC=4 SCAR=30.0
Pod documented
363 $_[0]->{updated_at} =
364 (defined($_[0]->{updated_at}) && length($_[0]->{updated_at}) ? Time::Moment->from_string($_[0]->{updated_at}) : undef)
365 0 ▶ unless ref $_[0]->{updated_at};
Branch: 2 branches
BranchTrueFalseTotal
unless ref $_[0]{"updated_at"} 0 0 0
defined $_[0]{'updated_at'} && length $_[0]{'updated_at'} ? : 0 0 0
Condition0%0/3
defined $_[0]{"updated_at"} and length $_[0]{"updated_at"}
!ll&&!rl&&r
000
MC/DC0%0/2
defined $_[0]{"updated_at"} and length $_[0]{"updated_at"}
defined $_[0]{"updated_at"} length $_[0]{"updated_at"}
Truth table0%0/3
A and B
A= defined $_[0]{"updated_at"}B= length $_[0]{"updated_at"}
ABresult
0X0
100
111
366 shift->{updated_at}
367 0 }
368  
369 =head2 total_private_repos
370  
371 Provides an accessor for C<total_private_repos>.
372  
373 =cut
374  
375 0 ▶sub total_private_repos {
Subroutine total_private_repos: not called CC=1 SCAR=6.9
Pod documented
376 shift->{total_private_repos}
377 0 }
378  
379 =head2 owned_private_repos
380  
381 Provides an accessor for C<owned_private_repos>.
382  
383 =cut
384  
385 0 ▶sub owned_private_repos {
Subroutine owned_private_repos: not called CC=1 SCAR=6.9
Pod documented
386 shift->{owned_private_repos}
387 0 }
388  
389 =head2 private_gists
390  
391 Provides an accessor for C<private_gists>.
392  
393 =cut
394  
395 0 ▶sub private_gists {
Subroutine private_gists: not called CC=1 SCAR=6.9
Pod documented
396 shift->{private_gists}
397 0 }
398  
399 =head2 disk_usage
400  
401 Provides an accessor for C<disk_usage>.
402  
403 =cut
404  
405 0 ▶sub disk_usage {
Subroutine disk_usage: not called CC=1 SCAR=6.9
Pod documented
406 shift->{disk_usage}
407 0 }
408  
409 =head2 collaborators
410  
411 Provides an accessor for C<collaborators>.
412  
413 =cut
414  
415 0 ▶sub collaborators {
Subroutine collaborators: not called CC=1 SCAR=6.9
Pod documented
416 shift->{collaborators}
417 0 }
418  
419 =head2 plan
420  
421 Provides an accessor for C<plan>.
422  
423 =cut
424  
425 0 ▶sub plan {
Subroutine plan: not called CC=2 SCAR=17.9
Pod documented
426 $_[0]->{plan} =
427 Net::Async::Github::Plan->new($_[0]->{plan})
428 0 ▶ unless ref $_[0]->{plan};
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0]{"plan"} 0 0 0
429 shift->{plan}
430 0 }
431  
432 4 1;
433  
« Github/Repository.pm ↑ Summary Github/Common.pm »