blib/lib/Test2/Event/Diag.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 75.0% 3 / 4 totaltotal 97.0% 33 / 34 CC 2 SCAR 2.0
CC
2
Cov
100%
init
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Test2/Event/Note.pm ↑ Summary blib/lib/Test2/Event/Encoding.pm »
1 package Test2::Event::Diag;
2 455 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 455 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 455 our $VERSION = '1.302226';
6  
7  
8 455 ▶BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
Subroutine BEGIN: called CC=1 SCAR=0.0
9 455 ▶use Test2::Util::HashBase qw/message/;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1436 ▶sub init {
Subroutine init: called CC=2 SCAR=6.9
Pod undocumented
12 1436 ▶ $_[0]->{+MESSAGE} = 'undef' unless defined $_[0]->{+MESSAGE};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_[0]{"message"} 2 1434 1436
13 }
14  
15 2 ▶sub summary { $_[0]->{+MESSAGE} }
Subroutine summary: called CC=1 SCAR=0.0
Pod documented
16  
17 1 ▶sub diagnostics { 1 }
Subroutine diagnostics: called CC=1 SCAR=0.0
Pod documented
18  
19 2377 ▶sub facet_data {
Subroutine facet_data: called CC=1 SCAR=0.0
Pod documented
20 2377 my $self = shift;
21  
22 2377 my $out = $self->common_facet_data;
23  
24 $out->{info} = [
25 {
26 tag => 'DIAG',
27 debug => 1,
28 2377 details => $self->{+MESSAGE},
29 }
30 ];
31  
32 2377 return $out;
33 }
34  
35 455 1;
36  
37 __END__
« blib/lib/Test2/Event/Note.pm ↑ Summary blib/lib/Test2/Event/Encoding.pm »