Branch Coverage

blib/lib/Metabrik/Server/Logstash/Oneshot.pm
Criterion Covered Total %
branch 0 44 0.0


line true false branch
47 0 0 unless my $binary = $self->get_binary
59 0 0 unless my $binary = $self->get_binary
72 0 0 unless $self->brik_help_run_undef_arg('test_filter_against_string', $string)
73 0 0 unless my $ref = $self->brik_help_run_invalid_arg('test_filter_against_string', $string, 'ARRAY', 'SCALAR')
75 0 0 unless $self->brik_help_run_undef_arg('test_filter_against_string', $filter_file)
76 0 0 unless $self->brik_help_run_file_not_found('test_filter_against_string', $filter_file)
78 0 0 unless my $ft = 'Metabrik::File::Text'->new_from_brik_init($self)
80 0 0 unless my $lines = $ft->read($filter_file)
82 0 0 if (@$lines == 0)
88 0 0 unless $_ =~ /^\s*#/
91 0 0 unless my $binary = $self->get_binary
119 0 0 if ($ref eq 'ARRAY') { }
121 0 0 unless $ft->write($string, $tmp_file)
137 0 0 unless $self->brik_help_run_undef_arg('test_filter_against_logs', $filter_file)
138 0 0 unless $self->brik_help_run_file_not_found('test_filter_against_logs', $filter_file)
139 0 0 unless $self->brik_help_run_undef_arg('test_filter_against_logs', $input_file)
140 0 0 unless $self->brik_help_run_file_not_found('test_filter_against_logs', $input_file)
142 0 0 unless my $ft = 'Metabrik::File::Text'->new_from_brik_init($self)
145 0 0 unless my $lines = $ft->read($filter_file)
147 0 0 if (@$lines == 0)
153 0 0 unless $_ =~ /^\s*#/
181 0 0 unless my $binary = $self->get_binary