| line |
true |
false |
branch |
|
138
|
1 |
11 |
defined $args{'host'} ? : |
|
139
|
1 |
11 |
defined $args{'port'} ? : |
|
140
|
1 |
11 |
defined $args{'verbose'} ? : |
|
167
|
1 |
315 |
if (defined $value and $value =~ /^[01]$/) { } |
|
193
|
8 |
50 |
unless (defined $$self{'socket'}) |
|
298
|
3 |
38 |
if not defined $args{$arg} or $args{$arg} eq '' |
|
303
|
1 |
17 |
unless Data::Validate::Type::is_number($args{'value'}) |
|
309
|
3 |
5 |
defined $args{'tags'} ? : |
|
|
1 |
7 |
defined $args{'sample_rate'} ? : |
|
349
|
3 |
38 |
if not defined $args{$arg} or $args{$arg} eq '' |
|
354
|
1 |
17 |
unless Data::Validate::Type::is_number($args{'value'}) |
|
360
|
3 |
5 |
defined $args{'tags'} ? : |
|
|
1 |
7 |
defined $args{'sample_rate'} ? : |
|
402
|
4 |
67 |
if not defined $args{$arg} or $args{$arg} eq '' |
|
407
|
1 |
20 |
unless Data::Validate::Type::is_number($args{'value'}, 'positive', 1) |
|
411
|
1 |
19 |
unless ($args{'unit'} =~ /^(s|sec|ms)$/) |
|
416
|
18 |
1 |
if ($args{'unit'} eq 's' or $args{'unit'} eq 'sec') |
|
426
|
3 |
7 |
defined $args{'tags'} ? : |
|
|
1 |
9 |
defined $args{'sample_rate'} ? : |
|
465
|
3 |
36 |
if not defined $args{$arg} or $args{$arg} eq '' |
|
472
|
3 |
5 |
defined $args{'tags'} ? : |
|
|
1 |
7 |
defined $args{'sample_rate'} ? : |
|
505
|
1 |
46 |
unless exists $$multipliers{$action} |
|
512
|
2 |
44 |
if not defined $args{$arg} or $args{$arg} eq '' |
|
517
|
10 |
34 |
if (defined $args{'value'}) |
|
519
|
8 |
2 |
if not $args{'value'} =~ /^\d+$/ or $args{'value'} <= 0 |
|
526
|
2 |
16 |
defined $args{'value'} && $args{'value'} ne '' ? : |
|
|
6 |
12 |
defined $args{'tags'} ? : |
|
|
2 |
16 |
defined $args{'sample_rate'} ? : |
|
555
|
6 |
100 |
unless ($args{'name'} =~ /^[a-zA-Z]/) |
|
561
|
30 |
64 |
if (defined $args{'tags'} and scalar @{$args{'tags'};} != 0) |
|
563
|
0 |
30 |
unless (Data::Validate::Type::is_arrayref($args{'tags'})) |
|
571
|
6 |
30 |
unless $tag =~ /^[a-zA-Z]/ |
|
575
|
6 |
24 |
if length $tag > 200 |
|
580
|
6 |
18 |
if $tag =~ /^\S+:\S+:/ |
|
586
|
30 |
46 |
if (defined $args{'sample_rate'}) |
|
588
|
24 |
6 |
if (not Data::Validate::Type::is_number($args{'sample_rate'}, 'strictly_positive', 1) or $args{'sample_rate'} > 1) |
|
612
|
5 |
176 |
if not defined $args{$arg} or $args{$arg} eq '' |
|
622
|
18 |
39 |
if $args{'name'} ne $original_name |
|
626
|
4 |
53 |
unless (defined $args{'sample_rate'}) |
|
632
|
0 |
57 |
unless defined $socket |
|
638
|
14 |
42 |
if (defined $args{'tags'} and scalar @{$args{'tags'};} != 0) |
|
648
|
6 |
14 |
if $tag ne $original_tag |
|
659
|
0 |
56 |
if $verbose |
|
662
|
52 |
4 |
if ($args{'sample_rate'} == 1 or rand() < $args{'sample_rate'}) |
|
665
|
24 |
28 |
unless (defined $response) |