Riak/Link.pm

filter: Statementstmt 90.0% 9 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod n/a totaltotal 83.3% 10 / 12 CC 1 SCAR 4.1
CC
1
Cov
90%
__ANON__
2.0
BEGIN
1.0
CRAP 1.5
« Riak/Role/UserAgent.pm ↑ Summary Riak.pm »
1 package Net::Riak::Link;
2 {
3 21 $Net::Riak::Link::VERSION = '0.1702';
4 }
5  
6 # ABSTRACT: the riaklink object represents a link from one Riak object to another
7  
8 21 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 21 with 'Net::Riak::Role::Base' => {classes =>
11 [{name => 'client', required => 0}, {name => 'bucket', required => 1},]};
12  
13 21 has key => (
14 is => 'rw',
15 isa => 'Str',
16 lazy => 1,
17 default => '_',
18 );
19 has tag => (
20 is => 'rw',
21 isa => 'Str',
22 lazy => 1,
23 0 ▶ default => sub {(shift)->bucket->name}
Subroutine __ANON__: not called CC=1 SCAR=6.9
24 21 );
25  
26 21 1;
27  
28 __END__
« Riak/Role/UserAgent.pm ↑ Summary Riak.pm »