Confluence.pm

filter: Statementstmt 100% 19 / 19 Branchbran 75.0% 3 / 4 Conditioncond 50.0% 3 / 6 MC/DCmcdc 25.0% 1 / 4 Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 82.5% 33 / 40 CC 5 SCAR 11.7
CC
5
Cov
86%
_client
5.5
BEGIN
1.0
BEGIN
1.0
CRAP 3.2
« Confluence/RequestBuilder.pm ↑ Summary Confluence/ResponseParser.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Footprintless::Plugin::Atlassian::Confluence;
5 1 $Footprintless::Plugin::Atlassian::Confluence::VERSION = '1.03';
6 # ABSTRACT: A Footprintless plugin for working with Atlassian Confluence
7 # PODNAME: Footprintless::Plugin::Atlassian::Confluence
8  
9 1 ▶use parent qw(Footprintless::Plugin);
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶sub _client {
Subroutine _client: called CC=5 SCAR=17.0
12 2 my ( $self, $footprintless, $coordinate, %options ) = @_;
13  
14 $options{request_builder_module} = $self->{config}{request_builder_module}
15 if ( !$options{request_builder_module}
16 2 ▶ && $self->{config}{request_builder_module} );
Branch: 1 branch
BranchTrueFalseTotal
if not $options{"request_builder_module"} and $self->{"config"}{"request_builder_module"} 1 1 2
Condition66%2/3
not $options{"request_builder_module"} and $self->{"config"}{"request_builder_module"}
!ll&&!rl&&r
011
MC/DC50%1/2
not $options{"request_builder_module"} and $self->{"config"}{"request_builder_module"}
not $options{"request_builder_module"} $self->{"config"}{"request_builder_module"}
Truth table66%2/3
not(A) and B
A= not $options{"request_builder_module"}B= $self->{"config"}{"request_builder_module"}
ABresult
0X0
100
111
17 $options{response_parser_module} = $self->{config}{response_parser_module}
18 if ( !$options{response_parser_module}
19 2 ▶ && $self->{config}{response_parser_module} );
Branch: 1 branch
BranchTrueFalseTotal
if not $options{"response_parser_module"} and $self->{"config"}{"response_parser_module"} 0 2 2
Condition33%1/3
not $options{"response_parser_module"} and $self->{"config"}{"response_parser_module"}
!ll&&!rl&&r
020
MC/DC0%0/2
not $options{"response_parser_module"} and $self->{"config"}{"response_parser_module"}
not $options{"response_parser_module"} $self->{"config"}{"response_parser_module"}
Truth table33%1/3
not(A) and B
A= not $options{"response_parser_module"}B= $self->{"config"}{"response_parser_module"}
ABresult
0X0
100
111
20  
21 2 require Footprintless::Plugin::Atlassian::Confluence::Client;
22 2 return Footprintless::Plugin::Atlassian::Confluence::Client->new( $footprintless,
23 $coordinate, %options );
24 }
25  
26 2 ▶sub factory_methods {
Subroutine factory_methods: called CC=1 SCAR=0.0
Pod documented
27 2 my ($self) = @_;
28 return {
29 2 ▶ confluence_client => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
30 2 return $self->_client(@_);
31 },
32 2 };
33 }
34  
35 1 1;
36  
37 __END__
« Confluence/RequestBuilder.pm ↑ Summary Confluence/ResponseParser.pm »