Net/Amazon/S3/Request/Role/HTTP/Method.pm

filter: Statementstmt 100% 12 / 12 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 17 / 17 SCAR 6.9
CC
2
Cov
100%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« Net/Amazon/S3/Request/Role/HTTP/Header/ACL.pm ↑ Summary Net/Amazon/S3/Client/Object/Range.pm »
1 package Net::Amazon::S3::Request::Role::HTTP::Method;
2 # ABSTRACT: HTTP method role
3 99 $Net::Amazon::S3::Request::Role::HTTP::Method::VERSION = '0.991';
4 99 ▶use MooseX::Role::Parameterized;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 99 ▶use Net::Amazon::S3::HTTPRequest;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 99 parameter method => (
9 is => 'ro',
10 isa => 'HTTPMethod',
11 required => 0,
12 );
13  
14 role {
15 594 ▶ my ($params) = @_;
Subroutine __ANON__: called CC=2 SCAR=6.9
16  
17 594 ▶ has _http_request_method => (
Branch: 1 branch
BranchTrueFalseTotal
$params->method ? : 495 99 594
18 is => 'ro',
19 isa => 'HTTPMethod',
20 $params->method
21 ? (
22 init_arg => undef,
23 default => $params->method,
24 )
25 : (
26 init_arg => 'method',
27 required => 1
28 ),
29 );
30 99 };
31  
32 99 1;
33  
34 __END__
35  
36 =pod
37  
38 =encoding UTF-8
39  
40 =head1 NAME
41  
42 Net::Amazon::S3::Request::Role::HTTP::Method - HTTP method role
43  
44 =head1 VERSION
45  
46 version 0.991
47  
48 =head1 AUTHOR
49  
50 Branislav Zahradník <barney@cpan.org>
51  
52 =head1 COPYRIGHT AND LICENSE
53  
54 This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník.
55  
56 This is free software; you can redistribute it and/or modify it under
57 the same terms as the Perl 5 programming language system itself.
58  
59 =cut
« Net/Amazon/S3/Request/Role/HTTP/Header/ACL.pm ↑ Summary Net/Amazon/S3/Client/Object/Range.pm »