Branch Coverage

blib/lib/Math/Telephony/ErlangC.pm
Criterion Covered Total %
branch 124 158 78.4


line true false branch
42 119122 96407 unless $validators{$type}($value)
50 0 0 if $v_end - $v_begin < $prec
59 0 0 if ($diff > 0) { }
70 56 66 unless defined $bprob
71 8 58 if $bprob == 0 or $bprob == 1
79 82 14 unless _validate('traffic', $traffic, 'probability', $wait_probability)
83 9 5 unless $traffic > 0
84 0 5 unless $wait_probability > 0
85 4 1 unless $wait_probability < 1
98 704 49 unless _validate('servers', $servers, 'probability', $wait_probability, 'precision', $prec)
103 30 19 unless $servers > 0
104 9 10 unless $wait_probability > 0
105 9 1 unless $wait_probability < 1
107 1 0 unless defined $prec
124 6656 333 unless _validate('traffic', $traffic, 'servers', $servers, 'time', $mst, 'time', $maxtime)
130 100 233 unless $traffic
131 100 133 unless $servers
132 60 73 unless $mst
133 48 25 unless $maxtime
134 6 19 unless $servers > $traffic
137 0 19 unless defined $wprob
145 10624 599 unless _validate('traffic', $traffic, 'probability', $maxtime_probability, 'time', $mst, 'time', $maxtime)
151 225 374 unless $traffic > 0
152 180 194 unless $mst > 0
153 80 114 unless $maxtime_probability > 0
154 112 2 unless $maxtime > 0
159 5 8 unless defined $v
168 71936 1543 unless _validate('servers', $servers, 'probability', $maxtime_probability, 'time', $mst, 'time', $maxtime, 'precision', $prec)
175 750 793 unless $servers > 0
176 225 568 unless $maxtime_probability > 0
177 315 253 unless $mst > 0
178 252 1 unless $maxtime > 0
180 1 0 unless defined $prec
196 11520 565 unless _validate('traffic', $traffic, 'servers', $servers, 'probability', $mprob, 'time', $maxtime)
202 180 385 unless $traffic > 0
203 180 205 unless $servers > 0
204 60 145 unless $mprob > 0
205 60 85 unless $mprob < 1
206 84 1 unless $maxtime > 0
207 0 1 unless $servers > $traffic
218 0 0 unless _validate('traffic', $frequency, 'servers', $servers, 'probability', $mprob, 'time', $maxtime)
224 0 0 unless $frequency > 0
225 0 0 unless $servers > 0
226 0 0 unless $mprob > 0
227 0 0 unless $mprob < 1
228 0 0 unless $maxtime > 0
230 0 0 unless defined $prec
248 11520 593 unless _validate('traffic', $traffic, 'servers', $servers, 'probability', $mprob, 'time', $mst)
254 180 413 unless $traffic > 0
255 180 233 unless $servers > 0
256 108 125 unless $mst
257 48 77 unless $mprob > 0
258 48 29 unless $mprob < 1
259 28 1 unless $servers > $traffic
270 640 82 unless _validate('traffic', $traffic, 'servers', $servers, 'time', $mst)
275 20 62 unless $traffic > 0
276 20 42 unless $servers > 0
277 12 30 unless $mst > 0
278 11 19 unless $servers > $traffic
290 576 63 unless _validate('traffic', $traffic, 'time', $average_wait_time, 'time', $mst)
295 25 38 unless $traffic > 0
296 20 18 unless $mst > 0
297 16 2 unless $average_wait_time > 0
302 6 8 unless defined $v
311 4224 166 unless _validate('servers', $servers, 'time', $average_wait_time, 'time', $mst, 'precision', $prec)
317 75 91 unless $servers > 0
318 54 37 unless $average_wait_time > 0
319 36 1 unless $mst > 0
321 1 0 unless defined $prec
337 640 57 unless _validate('traffic', $traffic, 'servers', $servers, 'time', $awt)
342 20 37 unless $traffic > 0
343 20 17 unless $servers > 0
344 12 5 unless $awt > 0
345 4 1 unless $servers > $traffic
355 0 0 unless _validate('traffic', $frequency, 'servers', $servers, 'time', $awt, 'precision', $prec)
361 0 0 unless $frequency > 0
362 0 0 unless $servers > 0
363 0 0 unless $awt > 0
365 0 0 unless defined $prec