forked from UPC/ravada
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pod_coverage.t
36 lines (30 loc) · 980 Bytes
/
pod_coverage.t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use strict;
use Test::More;
eval {
require Test::Pod::Coverage;
};
SKIP: {
diag($@) if $@;
skip(2,$@) if $@;
for my $type ( qw(VM Domain ) ){
Test::Pod::Coverage::pod_coverage_ok( "Ravada::$type"
, { also_private => [ qr/^[A-Z]+$/ ]}
, "Ravada::$type is covered" );
for my $backend (keys %Ravada::VALID_VM ) {
Test::Pod::Coverage::pod_coverage_ok(
"Ravada::$type::$backend"
, { also_private => [ qr/^[A-Z]+$/ ]}
, "Ravada::$type::$backend is covered" );
}
}
for my $pkg ( 'Ravada' , 'Ravada::Front' , 'Ravada::Request', 'Ravada::Auth' ) {
Test::Pod::Coverage::pod_coverage_ok( $pkg
, "$pkg is covered" );
}
for my $auth ('SQL', 'LDAP' ,'User') {
my $pkg = "Ravada::Auth::$auth";
Test::Pod::Coverage::pod_coverage_ok( $pkg
, "$pkg is covered" );
}
}
done_testing();