lib/Gentoo/Util/MetaCPAN/File.pm

filter: Statementstmt 85.1% 23 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod n/a totaltotal 82.8% 29 / 35 CC 1 SCAR 1.3
CC
1
Cov
85%
__ANON__
2.0
__ANON__
1.1
BEGIN
1.0
CRAP 1.1
« lib/Gentoo/Util/MetaCPAN/Release.pm ↑ Summary
1 2 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Gentoo::Util::MetaCPAN::File;
6  
7 2 our $VERSION = '0.001000'; # TRIAL
8  
9 # ABSTRACT: Enhancements to MetaCPAN::File
10  
11 2 our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
12  
13 2 ▶use Moo qw( extends has around );
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 ▶use Scalar::Util qw( blessed );
Subroutine BEGIN: called CC=1 SCAR=0.0
15 2 extends 'MetaCPAN::Client::File';
16  
17 0 ▶has latest => ( is => ro =>, lazy => 1, default => sub { $_[0]->data->{latest} } );
Subroutine __ANON__: not called CC=1 SCAR=1.2
18  
19 0 ▶around _known_fields => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
20 0 my ( $orig, $self, @args ) = @_;
21 0 return [ ( 'latest', @{ $self->$orig(@args) } ) ];
22 2 };
23  
24 2 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 2 1;
27  
28 __END__
« lib/Gentoo/Util/MetaCPAN/Release.pm ↑ Summary