OSS/Bucket.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« OSS.pm ↑ Summary
1 package OSS::Bucket;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use File::stat;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use IO::File;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use base qw(Class::Accessor::Fast);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 __PACKAGE__->mk_accessors(qw(bucket creation_date account));
10  
11 sub new {
12 my $class = shift;
13 my $self = $class->SUPER::new(@_);
14 croak "no bucket" unless $self->bucket;
15 croak "no account" unless $self->account;
16 return $self;
17 }
18  
19 1;
« OSS.pm ↑ Summary