DB/Library.pm

filter: Statementstmt 100% 29 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 100% 4 / 4 totaltotal 100% 43 / 43 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DB/Schema/Result/ItemData.pm ↑ Summary DB/Library/Trash.pm »
1 package Biblio::Zotero::DB::Library;
2 12 $Biblio::Zotero::DB::Library::VERSION = '0.004';
3 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 12 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 12 ▶use Biblio::Zotero::DB::Library::Trash;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 12 ▶use Biblio::Zotero::DB::Library::Unfiled;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 12 has _db => ( is => 'ro', weak_ref => 1 );
10  
11 2 ▶sub collections {
Subroutine collections: called CC=1 SCAR=0.0
Pod documented
12 2 my $self = shift;
13 2 $self->_db->schema->resultset('Collection');
14 }
15  
16 1 ▶has name => ( is => 'ro', default => sub { 'My Library' } );
Subroutine __ANON__: called CC=1 SCAR=0.0
17  
18 1 ▶sub items {
Subroutine items: called CC=1 SCAR=0.0
Pod documented
19 1 my $self = shift;
20 1 my $schema = $self->_db->schema;
21 1 $schema->resultset('StoredItem')
22 ->with_item_attachment_resultset('StoredItemAttachment')
23 ->_toplevel_items;
24 }
25  
26 2 ▶sub trash {
Subroutine trash: called CC=1 SCAR=0.0
Pod documented
27 2 my $self = shift;
28 2 Biblio::Zotero::DB::Library::Trash->new( _db => $self->_db );
29 }
30  
31 2 ▶sub unfiled {
Subroutine unfiled: called CC=1 SCAR=0.0
Pod documented
32 2 my $self = shift;
33 2 Biblio::Zotero::DB::Library::Unfiled->new( _db => $self->_db );
34 }
35  
36 12 1;
37  
38 __END__
« DB/Schema/Result/ItemData.pm ↑ Summary DB/Library/Trash.pm »