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 |
20 |
unless my $plugin = shift() |
104
|
4 |
16 |
if (defined $init) { } |
109
|
0 |
4 |
if ($@) { } |
117
|
0 |
3 |
unless my $plugin = shift() |
119
|
3 |
0 |
if (defined $reader) { } |
130
|
3 |
3 |
if (exists $Test::Collectd::Plugins::FakeCollectd{$plugin}{'Values'}) |
137
|
0 |
3 |
unless my $plugin = shift() |
138
|
3 |
0 |
if (exists $Test::Collectd::Plugins::FakeCollectd{$plugin}{'Values'}) { } |
146
|
0 |
2 |
unless my $plugin = shift() |
147
|
0 |
2 |
unless my $cfg = shift() |
150
|
0 |
2 |
unless ($cb) |
154
|
0 |
2 |
unless my $config = Test::Collectd::Config::parse($cfg) |
157
|
0 |
2 |
if ($@) { } |
190
|
0 |
3 |
unless $tb->ok(_load_module $module, 'load plugin module') |
191
|
0 |
3 |
unless $tb->ok(_reset_values $plugin, 'reset values') |
192
|
0 |
3 |
if $@ |
193
|
0 |
3 |
unless $tb->ok(_read $plugin, 'read plugin') |
195
|
0 |
3 |
unless $tb->ok(@values, 'read callback returned some values') |
215
|
0 |
12 |
unless $tb->ok(exists $dispatch{$_}, "mandatory key '${_}' exists") |
252
|
20 |
0 |
if (exists $dispatch{$_}) |
264
|
4 |
4 |
if (exists $dispatch{$_}) |
274
|
12 |
0 |
if (exists $dispatch{$_}) |
284
|
8 |
0 |
if (exists $dispatch{$_}) |
313
|
0 |
1 |
unless $tb->ok(_config($plugin, $config), 'config ok') |
347
|
1 |
16 |
if ($config) |
361
|
14 |
3 |
unless $reader |
364
|
0 |
3 |
if $@ |
365
|
3 |
0 |
if (exists $Test::Collectd::Plugins::FakeCollectd{$plugin}{'Values'}) { } |
374
|
2 |
2 |
if ($typesdb) { } |
376
|
0 |
2 |
if ($ref eq 'HASH') { } |
|
0 |
2 |
elsif ($ref eq '') { } |
389
|
0 |
4 |
unless ($fh) |
395
|
4 |
285 |
if ($t eq $type) |