| 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
Condition66%2/3
not $options{"request_builder_module"} and $self->{"config"}{"request_builder_module"}
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"}
| |||||||||||||||||||||||||||||
| 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
Condition33%1/3
not $options{"response_parser_module"} and $self->{"config"}{"response_parser_module"}
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"}
| |||||||||||||||||||||||||||||
| 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__ | ||||||||||||||||||||||||||||