lib/Video/PlaybackMachine/Schema/Result/ScheduleEntry.pm

filter: Statementstmt 86.9% 20 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 82.7% 24 / 29 CC 1 SCAR 1.8
CC
1
Cov
87%
get_start_time
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Video/PlaybackMachine/FillProducer/AbstractStill.pm ↑ Summary lib/Video/PlaybackMachine/Player.pm »
1 package Video::PlaybackMachine::Schema::Result::ScheduleEntry;
2  
3 3 our $VERSION = '0.09'; # VERSION
4  
5 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 __PACKAGE__->table("schedule_entry");
13  
14 3 __PACKAGE__->add_columns(
15 "schedule_entry_id" => { data_type => "integer", is_nullable => 0 },
16 "mrl" => { data_type => "text", is_nullable => 0 },
17 "schedule_id" => { data_type => "text", is_nullable => 0 },
18 "start_time" => { data_type => "integer", is_nullable => 0 },
19 "listed" => { data_type => "boolean", is_nullable => 1, default => 1 }
20 );
21  
22 3 __PACKAGE__->set_primary_key('schedule_entry_id');
23  
24 3 __PACKAGE__->might_have(
25 "movie_info",
26 "Video::PlaybackMachine::Schema::Result::MovieInfo",
27 { 'foreign.mrl' => "self.mrl" },
28 );
29  
30 3 __PACKAGE__->might_have(
31 "schedule_entry_end",
32 "Video::PlaybackMachine::Schema::Result::ScheduleEntryEnd",
33 { 'foreign.schedule_entry_id' => "self.schedule_entry_id" }
34 );
35  
36  
37 3 __PACKAGE__->belongs_to(
38 "schedule",
39 "Video::PlaybackMachine::Schema::Result::Schedule",
40 { 'foreign.schedule_id' => "self.schedule_id" },
41 );
42  
43 0 ▶sub get_start_time {
Subroutine get_start_time: not called CC=1 SCAR=6.9
Pod undocumented
44 0 my $self = shift;
45
46 0 carp "get_start_time deprecated";
47
48 0 return $self->start_time();
49 }
50 3 1;
« lib/Video/PlaybackMachine/FillProducer/AbstractStill.pm ↑ Summary lib/Video/PlaybackMachine/Player.pm »