Schema/Journal/DB/ChangeSet.pm

filter: Statementstmt 72.7% 8 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod 100% 1 / 1 totaltotal 71.4% 10 / 14 CC 1 SCAR 4.1
CC
1
Cov
73%
new
2.0
BEGIN
1.0
CRAP 1.5
« Schema/Journal/DB/AuduitLog.pm ↑ Summary Schema/Journal/DB/ChangeLog.pm »
1 package DBIx::Class::Schema::Journal::DB::ChangeSet;
2  
3 2 ▶use base 'DBIx::Class';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 __PACKAGE__->load_components(qw/InflateColumn::DateTime Core/);
6 2 __PACKAGE__->table('changeset');
7  
8 2 __PACKAGE__->add_columns(
9 ID => {
10 data_type => 'integer',
11 is_auto_increment => 1,
12 is_primary_key => 1,
13 is_nullable => 0,
14 },
15 user_id => {
16 data_type => 'integer',
17 is_nullable => 1,
18 is_foreign_key => 1,
19 },
20 set_date => {
21 data_type => 'timestamp',
22 is_nullable => 0,
23 },
24 session_id => {
25 data_type => 'varchar',
26 size => 255,
27 is_nullable => 1,
28 },
29 );
30  
31 sub new {
32 0 ▶ my $self = shift->next::method(@_);
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
33 0 $self->set_date(gmtime); # DateTime->now);
34 0 return $self;
35 }
36  
37 2 __PACKAGE__->set_primary_key('ID');
38  
39 2 1;
« Schema/Journal/DB/AuduitLog.pm ↑ Summary Schema/Journal/DB/ChangeLog.pm »