blib/lib/auto/share/dist/Cmd-Dwarf/app/lib/App/DB/Row.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 25 CC 2 SCAR 12.8
CC
2
Cov
0%
will_update
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.6
1 package App::DB::Row;
2 use Dwarf::Pragma;
3 use parent 'Teng::Row';
4 use Class::Method::Modifiers;
5  
6 before update => \&will_update;
7 sub will_update {
8 my ($self, $update_row_data) = @_;
9 my $table = $self->{table};
10 if (grep /^updated_at$/, @{ $table->columns }) {
11 $update_row_data->{updated_at} ||= \'NOW()';
12 }
13 }
14  
15 1;