Introspector/Gatherer/Bridge.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
_build_remote
2.0
gather
2.0
BEGIN
2.0
CRAP 2.0
1 package System::Introspector::Gatherer::Bridge;
2 use Object::Remote;
3 use Object::Remote::Future;
4 use Moo;
5  
6 has remote_spec => (is => 'ro', required => 1);
7 has remote_class => (is => 'ro', required => 1);
8 has remote_args => (is => 'ro', required => 1);
9 has remote => (is => 'lazy');
10  
11 sub _build_remote {
12 my ($self) = @_;
13 return $self->remote_class
14 ->new::on($self->remote_spec, $self->remote_args);
15 }
16  
17 sub gather { (shift)->remote->gather(@_) }
18  
19 1;
20  
21 __END__