Tester/Result/Upload.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 80.0% 4 / 5 totaltotal 96.9% 32 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Tester/Result/Failure.pm ↑ Summary Tester/Logger/HTTP.pm »
1 2 ▶use v5.20.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package JMAP::Tester::Result::Upload 0.113;
4 # ABSTRACT: what you get when you upload a blob
5  
6 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 with 'JMAP::Tester::Role::HTTPResult';
8  
9 2 ▶use experimental 'signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 #pod =head1 OVERVIEW
14 #pod
15 #pod A JMAP::Tester::Result::Upload object represents the successful upload of a
16 #pod JMAP blob. It is a successful L<JMAP::Tester::Role::HTTPResult>, meaning it
17 #pod has a C<http_response> method that returns an L<HTTP::Response> object.
18 #pod
19 #pod =method blob_id
20 #pod
21 #pod The blobId of the blob from the JMAP server.
22 #pod
23 #pod =method blobId
24 #pod
25 #pod An alias for C<blob_id> above.
26 #pod
27 #pod =method type
28 #pod
29 #pod The media type of the file (as specified in RFC6838, section 4.2) as set in the
30 #pod Content-Type header of the upload HTTP request.
31 #pod
32 #pod =method size
33 #pod
34 #pod The size of the file in octets.
35 #pod
36 #pod =cut
37  
38 1 ▶sub is_success { 1 }
Subroutine is_success: called CC=1 SCAR=0.0
Pod undocumented
39  
40 2 has payload => (
41 is => 'ro',
42 );
43  
44 1 ▶sub blob_id ($self) { $self->payload->{blobId} }
Subroutine blob_id: called CC=1 SCAR=0.0
Pod documented
45 1 ▶sub blobId ($self) { $self->payload->{blobId} }
Subroutine blobId: called CC=1 SCAR=0.0
Pod documented
46 1 ▶sub type ($self) { $self->payload->{type} }
Subroutine type: called CC=1 SCAR=0.0
Pod documented
47 1 ▶sub size ($self) { $self->payload->{size} }
Subroutine size: called CC=1 SCAR=0.0
Pod documented
48  
49 2 1;
50  
51 __END__
« Tester/Result/Failure.pm ↑ Summary Tester/Logger/HTTP.pm »