Games/AssaultCube/Log/Line/DemoStart.pm

filter: Statementstmt 87.5% 14 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 85.0% 17 / 20 CC 1 SCAR 2.2
CC
1
Cov
88%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Games/AssaultCube/Log/Line/Base/TeamInfo.pm ↑ Summary Games/AssaultCube/Log/Line/FlagDropped.pm »
1 # Declare our package
2 package Games::AssaultCube::Log::Line::DemoStart;
3  
4 # import the Moose stuff
5 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # Initialize our version
8 2 ▶use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 $VERSION = '0.04';
10  
11 2 extends 'Games::AssaultCube::Log::Line::Base';
12  
13 has 'tostr' => (
14 isa => 'Str',
15 is => 'ro',
16 lazy => 1,
17 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
18 0 my $self = shift;
19 0 return "Demo recording started";
20 },
21 2 );
22  
23 # TODO improve validation for everything here, ha!
24  
25 2 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 2 __PACKAGE__->meta->make_immutable;
27  
28 2 1;
29 __END__
« Games/AssaultCube/Log/Line/Base/TeamInfo.pm ↑ Summary Games/AssaultCube/Log/Line/FlagDropped.pm »