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.0';
4 12     12   15872 use 5.010;
  12         25  
5              
6 12     12   468 use Class::Tiny::Antlers;
  12         3943  
  12         69  
7 12     12   1495 use namespace::clean;
  12         9710  
  12         60  
8              
9             extends 'Statistics::R::REXP::Environment';
10              
11              
12             sub BUILD {
13 130     130 0 876 my ($self, $args) = @_;
14              
15             # Required attribute type
16 130 100       1739 die 'Global environment has implicit attributes' if defined $self->attributes;
17 129 100       2274 die 'Global environment has an implicit enclosure' if defined $self->enclosure;
18             }
19              
20             sub name {
21 1     1 1 5 'R_GlobalEnvironment'
22             }
23              
24              
25             1; # End of Statistics::R::REXP::GlobalEnvironment
26              
27             __END__