File Coverage

blib/lib/Statistics/R/REXP/EmptyEnvironment.pm
Criterion Covered Total %
statement 13 13 100.0
branch 6 6 100.0
condition n/a
subroutine 5 5 100.0
pod 1 2 50.0
total 25 26 96.1


line stmt bran cond sub pod time code
1             package Statistics::R::REXP::EmptyEnvironment;
2             # ABSTRACT: the empty R environment (C)
3             $Statistics::R::REXP::EmptyEnvironment::VERSION = '1.0001';
4 14     14   16148 use 5.010;
  14         74  
5              
6 14     14   469 use Class::Tiny::Antlers;
  14         3926  
  14         66  
7 14     14   1493 use namespace::clean;
  14         9432  
  14         95  
8              
9             extends 'Statistics::R::REXP::Environment';
10              
11              
12             sub BUILD {
13 90     90 0 642 my ($self, $args) = @_;
14              
15             # Required attribute type
16 90 100       1308 die 'Empty environment has no attributes' if defined $self->attributes;
17 89 100       362 die 'Nothing can be assigned to the empty environment' if exists $args->{frame};
18 88 100       1208 die 'Empty environment has no enclosure' if defined $self->enclosure;
19             }
20              
21              
22             sub name {
23 1     1 1 5 'R_EmptyEnv'
24             }
25              
26              
27             1; # End of Statistics::R::REXP::EmptyEnvironment
28              
29             __END__