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.0002';
4 14     14   45344 use 5.010;
  14         43  
5              
6 14     14   352 use Class::Tiny::Antlers;
  14         2986  
  14         69  
7 14     14   1768 use namespace::clean;
  14         8583  
  14         61  
8              
9             extends 'Statistics::R::REXP::Environment';
10              
11              
12             sub BUILD {
13 27     27 0 231 my ($self, $args) = @_;
14              
15             # Required attribute type
16 27 100       384 die 'Base environment has implicit attributes' if defined $self->attributes;
17 26 100       163 die 'Nothing can be assigned to the base environment' if exists $args->{frame};
18 25 100       357 die 'Base environment has an implicit enclosure' if defined $self->enclosure;
19             }
20              
21             sub name {
22 1     1 1 6 'R_BaseEnv'
23             }
24              
25              
26             1; # End of Statistics::R::REXP::BaseEnvironment
27              
28             __END__