File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 10
10
(Jason A. Crome)
11
11
12
12
[ DOCUMENTATION ]
13
- * None
13
+ * GH #1342: Document skipping private methods in pod coverage tests
14
+ (Jason A. Crome)
14
15
15
16
[ DEPRECATED ]
16
17
* None
Original file line number Diff line number Diff line change @@ -1083,4 +1083,21 @@ to call C<plugin_keywords> after the attribute definition.
1083
1083
1084
1084
plugin_keywords 'bar';
1085
1085
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
+
1086
1103
=cut
You can’t perform that action at this time.
0 commit comments