Set/Role/Managed.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
__ANON__
1.0
CRAP 1.0
« Set/Holder.pm ↑ Summary Set/Role/Stored.pm »
1 package Context::Set::Role::Managed;
2 3 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 =head1 NAME
5  
6 Context::Set::Role::Managed - Make Managed context use the manager operations in place of their native ones.
7  
8 =cut
9  
10 3 has 'manager' => ( is => 'rw' , isa => 'Context::Set::Manager', weak_ref => 1 );
11  
12  
13 3 ▶override 'unite' => sub{
Subroutine __ANON__: called CC=1 SCAR=0.0
14 3 my ($self , $other ) = @_;
15 3 return $self->manager()->unite($self, $self->manager->manage($other));
16 3 };
17  
18 1 ▶override 'restrict' => sub{
Subroutine __ANON__: called CC=1 SCAR=0.0
19 1 my ($self, $restriction_name) = @_;
20 1 return $self->manager()->restrict($self, $restriction_name);
21 3 };
22 3 1;
« Set/Holder.pm ↑ Summary Set/Role/Stored.pm »