P5U/Lib/TestPod.pm untested

filter: Statementstmt 0.0% 0 / 32 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 47 CC 2 SCAR 10.0
CC
2
Cov
0%
test_pod
6.0
BEGIN
2.0
_uniq
2.0
CRAP 2.7
1 package P5U::Lib::TestPod;
2  
3 use 5.010;
4 use strict;
5 use utf8;
6  
7 BEGIN {
8 $P5U::Command::TestPod::AUTHORITY = 'cpan:TOBYINK';
9 $P5U::Command::TestPod::VERSION = '0.100';
10 };
11  
12 use Object::AUTHORITY;
13 use Path::Iterator::Rule;
14 use Test::More;
15 use Test::Pod;
16  
17 sub _uniq
18 {
19 my %already;
20 grep { not $already{"$_"}++ } @_;
21 }
22  
23 sub test_pod
24 {
25 my $self = shift;
26
27 my @files =
28 _uniq
29 map "Path::Tiny"->new($_),
30 map {
31 (-d $_)
32 ? Path::Iterator::Rule::->new->or(
33 Path::Iterator::Rule::->new->perl_module,
34 Path::Iterator::Rule::->new->perl_pod,
35 Path::Iterator::Rule::->new->perl_script,
36 )->all($_)
37 : $_
38 } @_;
39
40 plan tests => scalar @files;
41 pod_file_ok("$_", $_) for @files;
42 }
43  
44 1;
45  
46 __END__