Branch Coverage

blib/lib/PGObject/Util/Replication/Standby.pm
Criterion Covered Total %
branch 17 38 44.7


line true false branch
175 0 14 if $cstring
179 5 9 if $authority and $self->upstream_password
181 12 2 if $authority
183 0 14 if $self->standby_name
192 1 1 if ("$cstring" =~ m[^postgresql://]) { }
196 0 1 if ($authority =~ /\@/) { }
202 0 1 if $authority
206 0 1 if $host and $host =~ /:\d+$/
210 0 1 if $uri->query_param('application_name')
216 0 1 if $old_cstring eq $cstring
221 1 0 if ($cstring =~ /^'/) { }
228 1 0 if $key
235 0 1 if $args{'application_name'}
265 0 4 if $self->standby_name
350 0 0 unless $trigger
352 0 0 unless open my $fh, '>', $trigger
360 0 0 unless $self->recoveryconf_path
367 0 0 if $self->recoveryconf->get_value('trigger_file')
370 0 0 if $self->can('restart')