KiokuDB/LinkChecker/Results.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« KiokuDB/GC/Naive.pm ↑ Summary KiokuDB/Role/API.pm »
1 #!/usr/bin/perl
2  
3 package KiokuDB::LinkChecker::Results;
4 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use Set::Object;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 # Set::Object of 1 million IDs is roughly 100mb of memory == 100 bytes per ID
11 # no need to scale anything more, if you have that many objects you should
12 # probably write your own tool
13 has [qw(seen root referenced unreferenced missing broken)] => (
14 isa => "Set::Object",
15 is => "ro",
16 48 ▶ default => sub { Set::Object->new },
Subroutine __ANON__: called CC=1 SCAR=0.0
17 2 );
18  
19 2 __PACKAGE__->meta->make_immutable;
20  
21 2 __PACKAGE__
22  
23 __END__
« KiokuDB/GC/Naive.pm ↑ Summary KiokuDB/Role/API.pm »