File Coverage

blib/lib/Biblio/Zotero/DB/Library/Trash.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 17 17 100.0


line stmt bran cond sub pod time code
1             package Biblio::Zotero::DB::Library::Trash;
2             $Biblio::Zotero::DB::Library::Trash::VERSION = '0.003';
3 12     12   72 use strict;
  12         28  
  12         368  
4 12     12   62 use warnings;
  12         26  
  12         280  
5 12     12   64 use Moo;
  12         27  
  12         72  
6              
7             has _db => ( is => 'ro', weak_ref => 1 );
8              
9             has name => ( is => 'ro', default => sub { 'Trash' } );
10              
11             sub items {
12 1     1 1 7 my $self = shift;
13 1         27 my $schema = $self->_db->schema;
14 1         19 $schema->resultset('Item')->_trash_items;
15             }
16              
17             1;
18              
19             __END__