File Coverage

blib/lib/Regexp/Pattern/Filename/Type/Video.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Regexp::Pattern::Filename::Type::Video;
2              
3 1     1   458969 use 5.010001;
  1         5  
4 1     1   6 use strict;
  1         3  
  1         39  
5 1     1   6 use warnings;
  1         2  
  1         117  
6             #use utf8;
7              
8 1     1   658 use Filename::Type::Video ();
  1         806  
  1         195  
9              
10             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
11             our $DATE = '2024-12-21'; # DATE
12             our $DIST = 'Regexp-Pattern-Filename-Type-Video'; # DIST
13             our $VERSION = '0.003'; # VERSION
14              
15             our %RE;
16              
17             $RE{filename_type_video} = {
18             summary => 'Video filename',
19             pat => $Filename::Type::Video::RE,
20             tags => ['anchored'],
21             examples => [
22             {str=>'foo', matches=>0, summary=>'No extension'},
23             {str=>'mp4', matches=>0, summary=>'Not an extension'},
24             {str=>'foo.mp4', matches=>1},
25             {str=>'foo bar.MKV', matches=>1, summary=>'Case insensitive'},
26             {str=>'foo.MKV is the file', matches=>0, summary=>'Regex is anchored'},
27             {str=>'foo.mp3', matches=>0},
28             ],
29             };
30              
31             1;
32             # ABSTRACT: Video filename
33              
34             __END__