Branch Coverage

blib/lib/Metabrik/File/Type.pm
Criterion Covered Total %
branch 0 60 0.0


line true false branch
41 0 0 unless $self->brik_help_run_undef_arg('get_mime_type', $files)
42 0 0 unless my $ref = $self->brik_help_run_invalid_arg('get_mime_type', $files, 'ARRAY', 'SCALAR')
47 0 0 if ($ref eq 'ARRAY') { }
50 0 0 unless my $type = $self->get_mime_type($file)
57 0 0 unless $self->brik_help_run_file_not_found('get_mime_type', $files)
71 0 0 unless $self->brik_help_run_undef_arg('get_magic_type', $files)
72 0 0 unless my $ref = $self->brik_help_run_invalid_arg('get_magic_type', $files, 'ARRAY', 'SCALAR')
77 0 0 if ($ref eq 'ARRAY') { }
80 0 0 unless my $type = $self->get_magic_type($file)
86 0 0 unless $self->brik_help_run_file_not_found('get_magic_type', $files)
99 0 0 unless $self->brik_help_run_undef_arg('is_mime_type', $files)
100 0 0 unless my $ref = $self->brik_help_run_invalid_arg('is_mime_type', $files, 'ARRAY', 'SCALAR')
104 0 0 if ($ref eq 'ARRAY') { }
105 0 0 unless $self->brik_help_run_empty_array_arg('is_mime_type', $files)
107 0 0 unless my $res = $self->is_mime_type($file, $mime_type)
112 0 0 unless my $type = $self->get_mime_type($files, $mime_type)
113 0 0 if ($type eq $mime_type) { }
121 0 0 $ref eq 'ARRAY' ? :
128 0 0 unless $self->brik_help_run_undef_arg('is_magic_type', $files)
129 0 0 unless my $ref = $self->brik_help_run_invalid_arg('is_magic_type', $files, 'ARRAY', 'SCALAR')
133 0 0 if ($ref eq 'ARRAY') { }
134 0 0 unless $self->brik_help_run_empty_array_arg('is_magic_type', $files)
136 0 0 unless my $res = $self->is_magic_type($file, $magic_type)
141 0 0 unless my $type = $self->get_magic_type($files, $magic_type)
142 0 0 if ($type eq $magic_type) { }
150 0 0 $ref eq 'ARRAY' ? :
157 0 0 unless $self->brik_help_run_undef_arg('get_types', $files)
158 0 0 unless my $ref = $self->brik_help_run_invalid_arg('get_types', $files, 'ARRAY', 'SCALAR')
161 0 0 unless my $mime = $self->get_mime_type($files)
162 0 0 unless my $magic = $self->get_magic_type($files)