Branch Coverage

lib/Told/Client.pm
Criterion Covered Total %
branch 45 72 62.5


line true false branch
39 2 17 if $$config{'defaulttags'}
40 4 15 if $$config{'tags'}
48 0 0 if (@_)
51 0 0 if $$self{'verbose'}
69 33 0 if ($type)
70 32 1 if ($type =~ /GET|POST|UDP/iu) { }
73 0 1 if $$self{'verbose'}
83 20 0 if (@_)
86 0 20 if $$self{'verbose'}
91 21 0 if (@_)
94 0 21 if $$self{'verbose'}
104 0 6 if $$self{'verbose'}
114 0 4 if $$self{'verbose'}
122 0 17 if (not $$self{'host'} or length $$self{'host'} == 0)
123 0 0 if $$self{'verbose'}
130 9 8 if $$self{'tags'}
131 0 4 if $$self{'defaulttags'} and ($cnt_fn_tags <= 0 and $cnt_known_tags <= 0)
136 6 11 if ($cnt_fn_tags > 0)
145 5 12 if (ref $_message eq 'HASH')
147 1 4 if ($$_message{'type'})
148 1 0 if $type eq ''
151 1 4 if ($$_message{'tags'})
158 3 2 if (ref $$_message{'message'} eq '') { }
162 0 2 if ($$self{'connectiontype'} eq 'GET')
163 0 0 if $$self{'verbose'}
170 14 3 if ($$self{'connectiontype'} eq 'GET') { }
3 0 elsif ($$self{'connectiontype'} eq 'POST') { }
0 0 elsif ($$self{'connectiontype'} eq 'UDP') { }
172 3 11 if $message
174 10 4 if ($anz_tags > 0)
175 1 9 if $message and length $message > 0
178 8 2 if length $type > 0
180 11 3 if length $type > 0
182 14 0 if ($$self{'host'} =~ /^test/u) { }
194 3 0 if ($$self{'host'} =~ /^test/u) { }
204 0 0 if $$self{'verbose'}