File Coverage

blib/lib/Statistics/R/REXP/GlobalEnvironment.pm
Criterion Covered Total %
statement 12 12 100.0
branch 4 4 100.0
condition n/a
subroutine 5 5 100.0
pod 1 2 50.0
total 22 23 95.6


line stmt bran cond sub pod time code
1             package Statistics::R::REXP::GlobalEnvironment;
2             # ABSTRACT: the global R environment (C<.GlobalEnv>)
3             $Statistics::R::REXP::GlobalEnvironment::VERSION = '1.0002';
4 14     14   47649 use 5.010;
  14         43  
5              
6 14     14   361 use Class::Tiny::Antlers;
  14         3181  
  14         72  
7 14     14   1917 use namespace::clean;
  14         9247  
  14         73  
8              
9             extends 'Statistics::R::REXP::Environment';
10              
11              
12             sub BUILD {
13 213     213 0 1772 my ($self, $args) = @_;
14              
15             # Required attribute type
16 213 100       3089 die 'Global environment has implicit attributes' if defined $self->attributes;
17 212 100       3628 die 'Global environment has an implicit enclosure' if defined $self->enclosure;
18             }
19              
20             sub name {
21 1     1 1 6 'R_GlobalEnvironment'
22             }
23              
24              
25             1; # End of Statistics::R::REXP::GlobalEnvironment
26              
27             __END__