Event/Warning.pm

filter: Statementstmt 100% 16 / 16 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 92.3% 24 / 26 CC 2 SCAR 2.8
CC
2
Cov
94%
init
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Plugin/NoWarnings.pm ↑ Summary
1 package Test2::Event::Warning;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 6 our $VERSION = '0.10';
7  
8 6 ▶use parent 'Test2::Event';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 6 ▶use Test2::Util::HashBase qw( warning );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 ▶sub init {
Subroutine init: called CC=2 SCAR=7.6
Pod undocumented
13 3 ▶ $_[0]->{ +WARNING } = 'undef' unless defined $_[0]->{ +WARNING };
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_[0]{"warning"} 0 3 3
14 }
15  
16 12 ▶sub facet_data {
Subroutine facet_data: called CC=1 SCAR=0.0
Pod documented
17 return {
18 assert => {
19 pass => 0,
20 12 details => $_[0]->{ +WARNING },
21 },
22 };
23 }
24  
25 6 1;
26  
27 # ABSTRACT: A Test2 event for warnings
28  
29 __END__
« Plugin/NoWarnings.pm ↑ Summary