Skip to content

Commit 9b5ed02

Browse files
committed
Merge branch 'docs/pod-coverage-in-plugins'
2 parents 5448bc5 + d1719b0 commit 9b5ed02

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

Changes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
(Jason A. Crome)
1111

1212
[ DOCUMENTATION ]
13-
* None
13+
* GH #1342: Document skipping private methods in pod coverage tests
14+
(Jason A. Crome)
1415

1516
[ DEPRECATED ]
1617
* None

lib/Dancer2/Plugin.pm

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,4 +1083,21 @@ to call C<plugin_keywords> after the attribute definition.
10831083
10841084
plugin_keywords 'bar';
10851085
1086+
=head3 Coverage for Dancer2::Plugin::<Name> is 0.0%, with 15 naked subroutines
1087+
1088+
To avoid errors caused by missing pod for private plugin methods, write your
1089+
pod coverage test like so:
1090+
1091+
pod_coverage_ok(
1092+
"Dancer2::Plugin::MyAwesomePlugin", {
1093+
also_private => [
1094+
qw/
1095+
BUILDARGS BUILD ClassHooks PluginKeyword dancer_app
1096+
execute_plugin_hook hook keywords on_plugin_import plugin_args
1097+
plugin_setting realms realm realm_providers register register_hook
1098+
register_plugin request var
1099+
/
1100+
]
1101+
});
1102+
10861103
=cut

0 commit comments

Comments
 (0)