Promise/Headers/ContentSecurityPolicyReportOnly.pm

filter: Statementstmt 100% 23 / 23 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 2 / 2 totaltotal 97.1% 34 / 35 CC 2 SCAR 2.0
CC
2
Cov
96%
init
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Promise/Headers/WantDigest.pm ↑ Summary Promise/Exception.pm »
1 ##----------------------------------------------------------------------------
2 ## Asynchronous HTTP Request and Promise - ~/lib/HTTP/Promise/Headers/ContentSecurityPolicyReportOnly.pm
3 ## Version v0.1.0
4 ## Copyright(c) 2022 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2022/05/07
7 ## Modified 2022/05/07
8 ## All rights reserved.
9 ##
10 ##
11 ## This program is free software; you can redistribute it and/or modify it
12 ## under the same terms as Perl itself.
13 ##----------------------------------------------------------------------------
14 package HTTP::Promise::Headers::ContentSecurityPolicyReportOnly;
15 BEGIN
16 3 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
17 3 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 3 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 3 warnings::register_categories( 'HTTP::Promise' );
20 3 ▶ use parent qw( HTTP::Promise::Headers::ContentSecurityPolicy );
Subroutine BEGIN: called CC=1 SCAR=0.0
21 3 our $VERSION = 'v0.1.0';
22 };
23  
24 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 sub init
28 3 ▶{
Subroutine init: called CC=2 SCAR=7.0
Pod documented
29 3 my $self = shift( @_ );
30 3 ▶ $self->SUPER::init( @_ ) || return( $self->pass_error );
Branch: 1 branch
BranchTrueFalseTotal
$self->SUPER::init(@_) or return $self->pass_error 3 0 3
31 3 $self->_field_name( 'Content-Security-Policy-Report-Only' );
32 3 return( $self );
33 }
34  
35 4 ▶sub report_uri { return( shift->_set_get_property_value( 'report-uri', @_ ) ); }
Subroutine report_uri: called CC=1 SCAR=0.0
Pod documented
36  
37 3 1;
38 # NOTE: POD
39 __END__
« Promise/Headers/WantDigest.pm ↑ Summary Promise/Exception.pm »