lib/MetaPOD/Format/JSON/PostCheck/v1.pm

filter: Statementstmt 90.9% 20 / 22 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 90.3% 28 / 31 CC 2 SCAR 3.0
CC
2
Cov
88%
postcheck
2.2
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« lib/MetaPOD/Format/JSON.pm ↑ Summary lib/MetaPOD/Format/JSON/Decoder/v1.pm »
1 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package MetaPOD::Format::JSON::PostCheck::v1;
5 6 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 $MetaPOD::Format::JSON::PostCheck::v1::AUTHORITY = 'cpan:KENTNL';
7 }
8 {
9 6 $MetaPOD::Format::JSON::PostCheck::v1::VERSION = '0.3.0';
10 }
11  
12 # ABSTRACT: Handler for unrecognised tokens in C<JSON>
13  
14  
15 6 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 6 ▶use Carp qw( croak );
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18  
19 13 ▶sub postcheck {
Subroutine postcheck: called CC=2 SCAR=7.9
Pod documented
20 13 my ( $self, $data, $result ) = @_;
21  
22 13 ▶ if ( keys %{$data} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (keys %{$data;}) 0 13 13
23 0 croak 'Keys found not supported in this version: <' . ( join q{,}, keys %{$data} ) . '>';
24 }
25 13 return;
26 }
27  
28 6 1;
29  
30 __END__
« lib/MetaPOD/Format/JSON.pm ↑ Summary lib/MetaPOD/Format/JSON/Decoder/v1.pm »