line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
13
|
use v5.14.0; |
|
1
|
|
|
|
|
4
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package JMAP::Tester::Result::Upload 0.103; |
4
|
|
|
|
|
|
|
# ABSTRACT: what you get when you upload a blob |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use Moo; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
4
|
|
7
|
|
|
|
|
|
|
with 'JMAP::Tester::Role::HTTPResult'; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
330
|
use namespace::clean; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
#pod =head1 OVERVIEW |
12
|
|
|
|
|
|
|
#pod |
13
|
|
|
|
|
|
|
#pod This is what you get when you upload! It's got an C method. It |
14
|
|
|
|
|
|
|
#pod returns true. It also has: |
15
|
|
|
|
|
|
|
#pod |
16
|
|
|
|
|
|
|
#pod =method blob_id |
17
|
|
|
|
|
|
|
#pod |
18
|
|
|
|
|
|
|
#pod The blobId of the blob from the JMAP server. |
19
|
|
|
|
|
|
|
#pod |
20
|
|
|
|
|
|
|
#pod =method blobId |
21
|
|
|
|
|
|
|
#pod |
22
|
|
|
|
|
|
|
#pod An alias for C above. |
23
|
|
|
|
|
|
|
#pod |
24
|
|
|
|
|
|
|
#pod =method type |
25
|
|
|
|
|
|
|
#pod |
26
|
|
|
|
|
|
|
#pod The media type of the file (as specified in RFC6838, section 4.2) as set in the |
27
|
|
|
|
|
|
|
#pod Content-Type header of the upload HTTP request. |
28
|
|
|
|
|
|
|
#pod |
29
|
|
|
|
|
|
|
#pod =method size |
30
|
|
|
|
|
|
|
#pod |
31
|
|
|
|
|
|
|
#pod The size of the file in octets. |
32
|
|
|
|
|
|
|
#pod |
33
|
|
|
|
|
|
|
#pod =cut |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
0
|
0
|
|
sub is_success { 1 } |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
has payload => ( |
38
|
|
|
|
|
|
|
is => 'ro', |
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
|
41
|
0
|
|
|
0
|
1
|
|
sub blob_id { $_[0]->payload->{blobId} } |
42
|
0
|
|
|
0
|
1
|
|
sub blobId { $_[0]->payload->{blobId} } |
43
|
0
|
|
|
0
|
1
|
|
sub type { $_[0]->payload->{type} } |
44
|
0
|
|
|
0
|
1
|
|
sub size { $_[0]->payload->{size} } |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |