blib/lib/Test2/Event/Note.pm

filter: Statementstmt 100% 19 / 19 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 66.6% 2 / 3 totaltotal 96.7% 30 / 31 CC 2 SCAR 2.2
CC
2
Cov
100%
init
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Test2/Plugin/Times.pm ↑ Summary blib/lib/Test2/Event/Diag.pm »
1 package Test2::Event::Note;
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 982 ▶sub init {
Subroutine init: called CC=2 SCAR=6.9
Pod undocumented
12 982 ▶ $_[0]->{+MESSAGE} = 'undef' unless defined $_[0]->{+MESSAGE};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_[0]{"message"} 2 980 982
13 }
14  
15 2 ▶sub summary { $_[0]->{+MESSAGE} }
Subroutine summary: called CC=1 SCAR=0.0
Pod documented
16  
17 6361 ▶sub facet_data {
Subroutine facet_data: called CC=1 SCAR=0.0
Pod documented
18 6361 my $self = shift;
19  
20 6361 my $out = $self->common_facet_data;
21  
22 $out->{info} = [
23 {
24 tag => 'NOTE',
25 debug => 0,
26 6361 details => $self->{+MESSAGE},
27 }
28 ];
29  
30 6361 return $out;
31 }
32  
33 455 1;
34  
35 __END__
« blib/lib/Test2/Plugin/Times.pm ↑ Summary blib/lib/Test2/Event/Diag.pm »