Simple/Object.pm

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 90.0% 18 / 20 CC 3 SCAR 7.1
CC
3
Cov
93%
BUILD
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« Simple/Object/Memory.pm ↑ Summary Simple.pm »
1 package Net::AmazonS3::Simple::Object;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use Class::Tiny qw(etag content_encoding content_length content_type last_modified),
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 { validate => 1, };
7  
8 =head1 NAME
9  
10 Net::AmazonS3::Simple::Object - base class of Object
11  
12 =head1 DESCRIPTION
13  
14 base object of Object
15  
16 =head1 METHODS
17  
18 =head2 new(%attributes)
19  
20 =head3 %attributes
21  
22 =head4 etag
23  
24 =head4 content_encoding
25  
26 =head4 content_length
27  
28 =head4 content_type
29  
30 =head4 last_modified
31  
32 =head4 validate
33  
34 =cut
35  
36 4 ▶sub BUILD {
Subroutine BUILD: called CC=3 SCAR=11.2
Pod undocumented
37 4 my ($self) = @_;
38  
39 4 foreach my $req (qw/etag/) {
40 4 ▶ die "$req attribute required" unless defined $self->$req;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self->$req 0 4 4
41 }
42 }
43  
44 =head1 LICENSE
45  
46 Copyright (C) Avast Software.
47  
48 This library is free software; you can redistribute it and/or modify
49 it under the same terms as Perl itself.
50  
51 =head1 AUTHOR
52  
53 Jan Seidl E<lt>seidl@avast.comE<gt>
54  
55 =cut
56  
57 2 1;
« Simple/Object/Memory.pm ↑ Summary Simple.pm »