Branch Coverage

blib/lib/XML/GSA/Group.pm
Criterion Covered Total %
branch 0 60 0.0


line true false branch
48 0 0 if $value and $value =~ /(add|delete)/
58 0 0 unless $feed and ref $feed eq 'XML::GSA'
65 0 0 if defined $self->action
70 0 0 unless $self->records
88 0 0 unless $self->writer and $record and ref $record eq 'HASH'
91 0 0 unless $$record{'url'} and $$record{'mimetype'}
95 0 0 unless $attributes
97 0 0 if ($$record{'metadata'} and ref $$record{'metadata'} eq 'ARRAY')
101 0 0 if $feed->type eq 'full'
111 0 0 unless $self->writer and $$record{'content'}
113 0 0 if ($$record{'mimetype'} eq 'text/plain') { }
0 0 elsif ($$record{'mimetype'} eq 'text/html') { }
132 0 0 if (not $feed->base_url || $$record{'url'} =~ /^http/ or $feed->base_url and $feed->base_url =~ /^http/ and $$record{'url'} =~ /^http/)
142 0 0 $feed->base_url ? :
152 0 0 if $$record{'action'} and $$record{'action'} =~ /^(delete|add)$/
157 0 0 if $$record{'lock'} and $$record{'lock'} =~ /^(true|false)$/
161 0 0 if $$record{'displayurl'}
165 0 0 if ($$record{'last-modified'})
168 0 0 if $date
173 0 0 if $$record{'authmethod'} and $$record{'authmethod'} =~ /^(none|httpbasic|ntlm|httpsso)$/
177 0 0 if $feed->type ne 'metadata-and-url' and defined $$record{'pagerank'}
181 0 0 if $feed->datasource eq 'web' and $$record{'crawl-immediately'} and $$record{'crawl-immediately'} =~ /^(true|false)$/
187 0 0 if $feed->datasource eq 'web' and $feed->type eq 'metadata-and-url' and $$record{'crawl-once'} and $$record{'crawl-once'} =~ /^(true|false)$/
199 0 0 unless $metadata
0 0 unless $self->writer and scalar @{[] unless $metadata;}
202 0 0 unless $metadata
203 0 0 unless $$meta{'name'} and $$meta{'content'}
207 0 0 if (ref $content eq 'ARRAY')
208 0 0 unless $content
228 0 0 unless ($epoch)