File Coverage

blib/lib/Slovo/Model/Products.pm
Criterion Covered Total %
statement 3 11 27.2
branch n/a
condition 0 6 0.0
subroutine 1 2 50.0
pod 0 1 0.0
total 4 20 20.0


line stmt bran cond sub pod time code
1             package Slovo::Model::Products;
2 3     3   1261 use Mojo::Base 'Slovo::Model', -signatures;
  3         7  
  3         16  
3              
4             my $table = 'products';
5             has table => $table;
6              
7 0     0 0   sub add ($m, $row) {
  0            
  0            
  0            
8 0   0       $row->{tstamp} //= time - 1;
9 0   0       $row->{created_at} //= $row->{tstamp};
10 0           $m->c->debug($row);
11 0           return $m->next::method($row);
12             }
13             1;