File Coverage

blib/lib/Statistics/R/REXP/BaseEnvironment.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::BaseEnvironment;
2             # ABSTRACT: the base R environment (C)
3             $Statistics::R::REXP::BaseEnvironment::VERSION = '1.0001';
4 14     14   16069 use 5.010;
  14         27  
5              
6 14     14   468 use Class::Tiny::Antlers;
  14         3946  
  14         63  
7 14     14   1470 use namespace::clean;
  14         9607  
  14         57  
8              
9             extends 'Statistics::R::REXP::Environment';
10              
11              
12             sub BUILD {
13 27     27 0 216 my ($self, $args) = @_;
14              
15             # Required attribute type
16 27 100       454 die 'Base environment has implicit attributes' if defined $self->attributes;
17 26 100       138 die 'Nothing can be assigned to the base environment' if exists $args->{frame};
18 25 100       358 die 'Base environment has an implicit enclosure' if defined $self->enclosure;
19             }
20              
21             sub name {
22 1     1 1 5 'R_BaseEnv'
23             }
24              
25              
26             1; # End of Statistics::R::REXP::BaseEnvironment
27              
28             __END__