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.0002';
4 14     14   47316 use 5.010;
  14         68  
5              
6 14     14   342 use Class::Tiny::Antlers;
  14         3373  
  14         77  
7 14     14   1953 use namespace::clean;
  14         8802  
  14         142  
8              
9             extends 'Statistics::R::REXP::Environment';
10              
11              
12             sub BUILD {
13 90     90 0 658 my ($self, $args) = @_;
14              
15             # Required attribute type
16 90 100       1315 die 'Empty environment has no attributes' if defined $self->attributes;
17 89 100       457 die 'Nothing can be assigned to the empty environment' if exists $args->{frame};
18 88 100       1255 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__