line |
true |
false |
branch |
36
|
0 |
4 |
@$list == 1 ? : |
38
|
0 |
4 |
unless ref $args and ref $args eq 'HASH' |
41
|
0 |
0 |
if (/^typesdb$/i) { } |
102
|
0 |
22 |
unless my $plugin = shift() |
104
|
4 |
18 |
if (defined $init) { } |
109
|
0 |
4 |
if ($@) { } |
117
|
0 |
4 |
unless my $plugin = shift() |
119
|
4 |
0 |
if (defined $reader) { } |
130
|
4 |
4 |
if (exists $Test::Collectd::Plugins::FakeCollectd{$plugin}{'Values'}) |
137
|
0 |
4 |
unless my $plugin = shift() |
138
|
4 |
0 |
if (exists $Test::Collectd::Plugins::FakeCollectd{$plugin}{'Values'}) { } |
146
|
0 |
4 |
unless my $plugin = shift() |
147
|
0 |
4 |
unless my $cfg = shift() |
150
|
0 |
4 |
unless ($cb) |
154
|
0 |
4 |
unless my $config = Test::Collectd::Config::parse($cfg) |
157
|
0 |
4 |
if ($@) { } |
190
|
0 |
4 |
unless $tb->ok(_load_module $module, 'load plugin module') |
191
|
0 |
4 |
unless $tb->ok(_reset_values $module, 'reset values') |
192
|
0 |
4 |
if $@ |
193
|
0 |
4 |
unless $tb->ok(_read $plugin, 'read plugin') |
195
|
0 |
4 |
unless $tb->ok(@values, 'read callback returned some values') |
215
|
0 |
15 |
unless $tb->ok(exists $dispatch{$_}, "mandatory key '${_}' exists") |
252
|
25 |
0 |
if (exists $dispatch{$_}) |
255
|
25 |
0 |
if $dispatch{$_} |
264
|
5 |
5 |
if (exists $dispatch{$_}) |
274
|
15 |
0 |
if (exists $dispatch{$_}) |
284
|
10 |
0 |
if (exists $dispatch{$_}) |
313
|
0 |
2 |
unless $tb->ok(_config($plugin, $config), 'config ok') |
347
|
2 |
16 |
if ($config) |
361
|
14 |
4 |
unless $reader |
364
|
0 |
4 |
if $@ |
365
|
4 |
0 |
if (exists $Test::Collectd::Plugins::FakeCollectd{$plugin}{'Values'}) { } |
374
|
3 |
2 |
if ($typesdb) { } |
376
|
0 |
3 |
if ($ref eq 'HASH') { } |
|
0 |
3 |
elsif ($ref eq '') { } |
389
|
0 |
5 |
unless ($fh) |
395
|
5 |
372 |
if ($t eq $type) |