File: 002_pod_coverage.t

package info (click to toggle)
libdancer2-plugin-passphrase-perl 3.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 168 kB
  • sloc: perl: 190; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (4)
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
use strict;
use warnings;
use Test::More;

eval "use Test::Pod::Coverage 1.08";
plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage" if $@;

plan tests => 1;

my $d2_subs = qr{
    (
       ClassHooks |
       PluginKeyword |
       dancer_app |
       execute_plugin_hook |
       hook |
       keywords |
       on_plugin_import |
       plugin_args |
       plugin_setting |
       register |
       register_hook |
       register_plugin |
       request |
       var
    )
}x;
pod_coverage_ok(
    "Dancer2::Plugin::Passphrase",
    { also_private => [ $d2_subs ] },
    "Dancer2::Plugin::Passphrase has full POD coverage"
);