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 SCAR 55.8
CC
21
Cov
18%
created_at
20.0
updated_at
20.0
avatar_url
6.0
CRAP 265.4
« Github/Repository.pm ↑ Summary Github/PullRequest.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.010'; # 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 sub login {
35 shift->{login}
36 0 ▶}
Subroutine login: not called CC=1 SCAR=6.9
Pod documented
37  
38 =head2 id
39  
40 Provides an accessor for C<id>.
41  
42 =cut
43  
44 sub id {
45 shift->{id}
46 0 ▶}
Subroutine id: not called CC=1 SCAR=6.9
Pod documented
47  
48 =head2 avatar_url
49  
50 Provides an accessor for C<avatar_url>.
51  
52 =cut
53  
54 sub avatar_url {
55 $_[0]->{avatar_url} =
56 URI::Template->new($_[0]->{avatar_url})
57 0 ▶ unless ref $_[0]->{avatar_url};
Subroutine avatar_url: not called CC=2 SCAR=17.9
Pod documented
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 sub gravatar_id {
68 shift->{gravatar_id}
69 0 ▶}
Subroutine gravatar_id: not called CC=1 SCAR=6.9
Pod documented
70  
71 =head2 url
72  
73 Provides an accessor for C<url>.
74  
75 =cut
76  
77 sub url {
78 shift->{url}
79 0 ▶}
Subroutine url: not called CC=1 SCAR=6.9
Pod documented
80  
81 =head2 html_url
82  
83 Provides an accessor for C<html_url>.
84  
85 =cut
86  
87 sub html_url {
88 $_[0]->{html_url} =
89 URI::Template->new($_[0]->{html_url})
90 0 ▶ unless ref $_[0]->{html_url};
Subroutine html_url: not called CC=2 SCAR=17.9
Pod documented
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 sub followers_url {
101 $_[0]->{followers_url} =
102 URI::Template->new($_[0]->{followers_url})
103 0 ▶ unless ref $_[0]->{followers_url};
Subroutine followers_url: not called CC=2 SCAR=17.9
Pod documented
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 sub following_url {
114 $_[0]->{following_url} =
115 URI::Template->new($_[0]->{following_url})
116 0 ▶ unless ref $_[0]->{following_url};
Subroutine following_url: not called CC=2 SCAR=17.9
Pod documented
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 sub gists_url {
127 $_[0]->{gists_url} =
128 URI::Template->new($_[0]->{gists_url})
129 0 ▶ unless ref $_[0]->{gists_url};
Subroutine gists_url: not called CC=2 SCAR=17.9
Pod documented
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 sub starred_url {
140 $_[0]->{starred_url} =
141 URI::Template->new($_[0]->{starred_url})
142 0 ▶ unless ref $_[0]->{starred_url};
Subroutine starred_url: not called CC=2 SCAR=17.9
Pod documented
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 sub subscriptions_url {
153 $_[0]->{subscriptions_url} =
154 URI::Template->new($_[0]->{subscriptions_url})
155 0 ▶ unless ref $_[0]->{subscriptions_url};
Subroutine subscriptions_url: not called CC=2 SCAR=17.9
Pod documented
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 sub organizations_url {
166 $_[0]->{organizations_url} =
167 URI::Template->new($_[0]->{organizations_url})
168 0 ▶ unless ref $_[0]->{organizations_url};
Subroutine organizations_url: not called CC=2 SCAR=17.9
Pod documented
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 sub repos_url {
179 $_[0]->{repos_url} =
180 URI::Template->new($_[0]->{repos_url})
181 0 ▶ unless ref $_[0]->{repos_url};
Subroutine repos_url: not called CC=2 SCAR=17.9
Pod documented
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 sub events_url {
192 $_[0]->{events_url} =
193 URI::Template->new($_[0]->{events_url})
194 0 ▶ unless ref $_[0]->{events_url};
Subroutine events_url: not called CC=2 SCAR=17.9
Pod documented
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 sub received_events_url {
205 $_[0]->{received_events_url} =
206 URI::Template->new($_[0]->{received_events_url})
207 0 ▶ unless ref $_[0]->{received_events_url};
Subroutine received_events_url: not called CC=2 SCAR=17.9
Pod documented
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 sub type {
218 shift->{type}
219 0 ▶}
Subroutine type: not called CC=1 SCAR=6.9
Pod documented
220  
221 =head2 site_admin
222  
223 Provides an accessor for C<site_admin>.
224  
225 =cut
226  
227 sub site_admin {
228 shift->{site_admin}
229 0 ▶ ? 1 : 0
Subroutine site_admin: not called CC=2 SCAR=17.9
Pod documented
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 sub name {
239 shift->{name}
240 0 ▶}
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
241  
242 =head2 company
243  
244 Provides an accessor for C<company>.
245  
246 =cut
247  
248 sub company {
249 shift->{company}
250 0 ▶}
Subroutine company: not called CC=1 SCAR=6.9
Pod documented
251  
252 =head2 blog
253  
254 Provides an accessor for C<blog>.
255  
256 =cut
257  
258 sub blog {
259 shift->{blog}
260 0 ▶}
Subroutine blog: not called CC=1 SCAR=6.9
Pod documented
261  
262 =head2 location
263  
264 Provides an accessor for C<location>.
265  
266 =cut
267  
268 sub location {
269 shift->{location}
270 0 ▶}
Subroutine location: not called CC=1 SCAR=6.9
Pod documented
271  
272 =head2 email
273  
274 Provides an accessor for C<email>.
275  
276 =cut
277  
278 sub email {
279 shift->{email}
280 0 ▶}
Subroutine email: not called CC=1 SCAR=6.9
Pod documented
281  
282 =head2 hireable
283  
284 Provides an accessor for C<hireable>.
285  
286 =cut
287  
288 sub hireable {
289 shift->{hireable}
290 0 ▶ ? 1 : 0
Subroutine hireable: not called CC=2 SCAR=17.9
Pod documented
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 sub bio {
300 shift->{bio}
301 0 ▶}
Subroutine bio: not called CC=1 SCAR=6.9
Pod documented
302  
303 =head2 public_repos
304  
305 Provides an accessor for C<public_repos>.
306  
307 =cut
308  
309 sub public_repos {
310 shift->{public_repos}
311 0 ▶}
Subroutine public_repos: not called CC=1 SCAR=6.9
Pod documented
312  
313 =head2 public_gists
314  
315 Provides an accessor for C<public_gists>.
316  
317 =cut
318  
319 sub public_gists {
320 shift->{public_gists}
321 0 ▶}
Subroutine public_gists: not called CC=1 SCAR=6.9
Pod documented
322  
323 =head2 followers
324  
325 Provides an accessor for C<followers>.
326  
327 =cut
328  
329 sub followers {
330 shift->{followers}
331 0 ▶}
Subroutine followers: not called CC=1 SCAR=6.9
Pod documented
332  
333 =head2 following
334  
335 Provides an accessor for C<following>.
336  
337 =cut
338  
339 sub following {
340 shift->{following}
341 0 ▶}
Subroutine following: not called CC=1 SCAR=6.9
Pod documented
342  
343 =head2 created_at
344  
345 Provides an accessor for C<created_at>.
346  
347 =cut
348  
349 sub created_at {
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};
Subroutine created_at: not called CC=4 SCAR=30.0
Pod documented
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 sub updated_at {
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};
Subroutine updated_at: not called CC=4 SCAR=30.0
Pod documented
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 sub total_private_repos {
376 shift->{total_private_repos}
377 0 ▶}
Subroutine total_private_repos: not called CC=1 SCAR=6.9
Pod documented
378  
379 =head2 owned_private_repos
380  
381 Provides an accessor for C<owned_private_repos>.
382  
383 =cut
384  
385 sub owned_private_repos {
386 shift->{owned_private_repos}
387 0 ▶}
Subroutine owned_private_repos: not called CC=1 SCAR=6.9
Pod documented
388  
389 =head2 private_gists
390  
391 Provides an accessor for C<private_gists>.
392  
393 =cut
394  
395 sub private_gists {
396 shift->{private_gists}
397 0 ▶}
Subroutine private_gists: not called CC=1 SCAR=6.9
Pod documented
398  
399 =head2 disk_usage
400  
401 Provides an accessor for C<disk_usage>.
402  
403 =cut
404  
405 sub disk_usage {
406 shift->{disk_usage}
407 0 ▶}
Subroutine disk_usage: not called CC=1 SCAR=6.9
Pod documented
408  
409 =head2 collaborators
410  
411 Provides an accessor for C<collaborators>.
412  
413 =cut
414  
415 sub collaborators {
416 shift->{collaborators}
417 0 ▶}
Subroutine collaborators: not called CC=1 SCAR=6.9
Pod documented
418  
419 =head2 plan
420  
421 Provides an accessor for C<plan>.
422  
423 =cut
424  
425 sub plan {
426 $_[0]->{plan} =
427 Net::Async::Github::Plan->new($_[0]->{plan})
428 0 ▶ unless ref $_[0]->{plan};
Subroutine plan: not called CC=2 SCAR=17.9
Pod documented
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/PullRequest.pm »