| blib/lib/Net/Async/Github/PullRequest.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 12 | 36 | 33.3 |
| branch | 0 | 4 | 0.0 |
| condition | n/a | ||
| subroutine | 4 | 26 | 15.3 |
| pod | 22 | 22 | 100.0 |
| total | 38 | 88 | 43.1 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Net::Async::Github::PullRequest; | ||||||
| 2 | |||||||
| 3 | 2 | 2 | 183234 | use strict; | |||
| 2 | 4 | ||||||
| 2 | 84 | ||||||
| 4 | 2 | 2 | 11 | use warnings; | |||
| 2 | 4 | ||||||
| 2 | 284 | ||||||
| 5 | |||||||
| 6 | our $VERSION = '0.013'; # VERSION | ||||||
| 7 | |||||||
| 8 | 2 | 2 | 25 | use parent qw(Net::Async::Github::Common); | |||
| 2 | 4 | ||||||
| 2 | 21 | ||||||
| 9 | |||||||
| 10 | =head1 NAME | ||||||
| 11 | |||||||
| 12 | Net::Async::Github::PullRequest | ||||||
| 13 | |||||||
| 14 | =head1 DESCRIPTION | ||||||
| 15 | |||||||
| 16 | Autogenerated module. | ||||||
| 17 | |||||||
| 18 | =cut | ||||||
| 19 | |||||||
| 20 | 2 | 2 | 921 | use Net::Async::Github::User (); | |||
| 2 | 4 | ||||||
| 2 | 1330 | ||||||
| 21 | |||||||
| 22 | =head1 METHODS | ||||||
| 23 | |||||||
| 24 | =cut | ||||||
| 25 | |||||||
| 26 | =head2 url | ||||||
| 27 | |||||||
| 28 | Provides an accessor for C |
||||||
| 29 | |||||||
| 30 | =cut | ||||||
| 31 | |||||||
| 32 | sub url { | ||||||
| 33 | shift->{url} | ||||||
| 34 | 0 | 0 | 1 | } | |||
| 35 | |||||||
| 36 | =head2 id | ||||||
| 37 | |||||||
| 38 | Provides an accessor for C |
||||||
| 39 | |||||||
| 40 | =cut | ||||||
| 41 | |||||||
| 42 | sub id { | ||||||
| 43 | shift->{id} | ||||||
| 44 | 0 | 0 | 1 | } | |||
| 45 | |||||||
| 46 | =head2 node_id | ||||||
| 47 | |||||||
| 48 | Provides an accessor for C |
||||||
| 49 | |||||||
| 50 | =cut | ||||||
| 51 | |||||||
| 52 | sub node_id { | ||||||
| 53 | shift->{node_id} | ||||||
| 54 | 0 | 0 | 1 | } | |||
| 55 | |||||||
| 56 | =head2 number | ||||||
| 57 | |||||||
| 58 | Provides an accessor for C |
||||||
| 59 | |||||||
| 60 | =cut | ||||||
| 61 | |||||||
| 62 | sub number { | ||||||
| 63 | shift->{number} | ||||||
| 64 | 0 | 0 | 1 | } | |||
| 65 | |||||||
| 66 | =head2 state | ||||||
| 67 | |||||||
| 68 | Provides an accessor for C |
||||||
| 69 | |||||||
| 70 | =cut | ||||||
| 71 | |||||||
| 72 | sub state { | ||||||
| 73 | shift->{state} | ||||||
| 74 | 0 | 0 | 1 | } | |||
| 75 | |||||||
| 76 | =head2 locked | ||||||
| 77 | |||||||
| 78 | Provides an accessor for C |
||||||
| 79 | |||||||
| 80 | =cut | ||||||
| 81 | |||||||
| 82 | sub locked { | ||||||
| 83 | shift->{locked} | ||||||
| 84 | 0 | 0 | 1 | } | |||
| 85 | |||||||
| 86 | =head2 title | ||||||
| 87 | |||||||
| 88 | Provides an accessor for C |
||||||
| 89 | |||||||
| 90 | =cut | ||||||
| 91 | |||||||
| 92 | sub title { | ||||||
| 93 | shift->{title} | ||||||
| 94 | 0 | 0 | 1 | } | |||
| 95 | |||||||
| 96 | =head2 user | ||||||
| 97 | |||||||
| 98 | Provides an accessor for C |
||||||
| 99 | |||||||
| 100 | =cut | ||||||
| 101 | |||||||
| 102 | sub user { | ||||||
| 103 | $_[0]->{user} = | ||||||
| 104 | Net::Async::Github::User->new($_[0]->{user}) | ||||||
| 105 | 0 | 0 | 0 | 1 | unless ref $_[0]->{user}; | ||
| 106 | shift->{user} | ||||||
| 107 | 0 | } | |||||
| 108 | |||||||
| 109 | =head2 body | ||||||
| 110 | |||||||
| 111 | Provides an accessor for C. | ||||||
| 112 | |||||||
| 113 | =cut | ||||||
| 114 | |||||||
| 115 | sub body { | ||||||
| 116 | shift->{body} | ||||||
| 117 | 0 | 0 | 1 | } | |||
| 118 | |||||||
| 119 | =head2 labels | ||||||
| 120 | |||||||
| 121 | Provides an accessor for C |
||||||
| 122 | |||||||
| 123 | =cut | ||||||
| 124 | |||||||
| 125 | sub labels { | ||||||
| 126 | shift->{labels} | ||||||
| 127 | 0 | 0 | 1 | } | |||
| 128 | |||||||
| 129 | =head2 milestone | ||||||
| 130 | |||||||
| 131 | Provides an accessor for C |
||||||
| 132 | |||||||
| 133 | =cut | ||||||
| 134 | |||||||
| 135 | sub milestone { | ||||||
| 136 | shift->{milestone} | ||||||
| 137 | 0 | 0 | 1 | } | |||
| 138 | |||||||
| 139 | =head2 created_at | ||||||
| 140 | |||||||
| 141 | Provides an accessor for C |
||||||
| 142 | |||||||
| 143 | =cut | ||||||
| 144 | |||||||
| 145 | sub created_at { | ||||||
| 146 | shift->{created_at} | ||||||
| 147 | 0 | 0 | 1 | } | |||
| 148 | |||||||
| 149 | =head2 updated_at | ||||||
| 150 | |||||||
| 151 | Provides an accessor for C |
||||||
| 152 | |||||||
| 153 | =cut | ||||||
| 154 | |||||||
| 155 | sub updated_at { | ||||||
| 156 | shift->{updated_at} | ||||||
| 157 | 0 | 0 | 1 | } | |||
| 158 | |||||||
| 159 | =head2 closed_at | ||||||
| 160 | |||||||
| 161 | Provides an accessor for C |
||||||
| 162 | |||||||
| 163 | =cut | ||||||
| 164 | |||||||
| 165 | sub closed_at { | ||||||
| 166 | shift->{closed_at} | ||||||
| 167 | 0 | 0 | 1 | } | |||
| 168 | |||||||
| 169 | =head2 merged_at | ||||||
| 170 | |||||||
| 171 | Provides an accessor for C |
||||||
| 172 | |||||||
| 173 | =cut | ||||||
| 174 | |||||||
| 175 | sub merged_at { | ||||||
| 176 | shift->{merged_at} | ||||||
| 177 | 0 | 0 | 1 | } | |||
| 178 | |||||||
| 179 | =head2 merge_commit_sha | ||||||
| 180 | |||||||
| 181 | Provides an accessor for C |
||||||
| 182 | |||||||
| 183 | =cut | ||||||
| 184 | |||||||
| 185 | sub merge_commit_sha { | ||||||
| 186 | shift->{merge_commit_sha} | ||||||
| 187 | 0 | 0 | 1 | } | |||
| 188 | |||||||
| 189 | =head2 mergeable | ||||||
| 190 | |||||||
| 191 | Provides an accessor for C |
||||||
| 192 | |||||||
| 193 | =cut | ||||||
| 194 | |||||||
| 195 | sub mergeable { | ||||||
| 196 | shift->{mergeable} | ||||||
| 197 | 0 | 0 | 1 | } | |||
| 198 | |||||||
| 199 | =head2 merged | ||||||
| 200 | |||||||
| 201 | Provides an accessor for C |
||||||
| 202 | |||||||
| 203 | =cut | ||||||
| 204 | |||||||
| 205 | sub merged { | ||||||
| 206 | shift->{merged} | ||||||
| 207 | 0 | 0 | 1 | } | |||
| 208 | |||||||
| 209 | =head2 assignee | ||||||
| 210 | |||||||
| 211 | Provides an accessor for C |
||||||
| 212 | |||||||
| 213 | =cut | ||||||
| 214 | |||||||
| 215 | sub assignee { | ||||||
| 216 | $_[0]->{assignee} = | ||||||
| 217 | Net::Async::Github::User->new($_[0]->{assignee}) | ||||||
| 218 | 0 | 0 | 0 | 1 | unless ref $_[0]->{assignee}; | ||
| 219 | shift->{assignee} | ||||||
| 220 | 0 | } | |||||
| 221 | |||||||
| 222 | =head2 head | ||||||
| 223 | |||||||
| 224 | Provides an accessor for C. | ||||||
| 225 | |||||||
| 226 | =cut | ||||||
| 227 | |||||||
| 228 | sub head { | ||||||
| 229 | shift->{head} | ||||||
| 230 | 0 | 0 | 1 | } | |||
| 231 | |||||||
| 232 | =head2 base | ||||||
| 233 | |||||||
| 234 | Provides an accessor for C |
||||||
| 235 | |||||||
| 236 | =cut | ||||||
| 237 | |||||||
| 238 | sub base { | ||||||
| 239 | shift->{base} | ||||||
| 240 | 0 | 0 | 1 | } | |||
| 241 | |||||||
| 242 | =head2 author_association | ||||||
| 243 | |||||||
| 244 | Provides an accessor for C |
||||||
| 245 | |||||||
| 246 | =cut | ||||||
| 247 | |||||||
| 248 | sub author_association { | ||||||
| 249 | shift->{author_association} | ||||||
| 250 | 0 | 0 | 1 | } | |||
| 251 | |||||||
| 252 | 1; | ||||||
| 253 |