Bugzilla – Attachment 72521 Details for
Bug 20357
Pod Coverage checking for no public subs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20357: Correct POD Coverage checking for zero sub case
Bug-20357-Correct-POD-Coverage-checking-for-zero-s.patch (text/plain), 1.31 KB, created by
Mark Tompsett
on 2018-03-07 20:12:26 UTC
(
hide
)
Description:
Bug 20357: Correct POD Coverage checking for zero sub case
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-03-07 20:12:26 UTC
Size:
1.31 KB
patch
obsolete
>From a58586427c22eebdc1299040596a77637f528863 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Wed, 7 Mar 2018 19:27:32 +0000 >Subject: [PATCH] Bug 20357: Correct POD Coverage checking for zero sub case > >Currently, bug 19929 fails QA Test tools, but it >makes no sense. > >TEST PLAN >--------- >1) in kohaclone branch apply 19929 >2) Run the following commands: > kshell > /home/vagrant/qa-test-tools/koha-qa.pl -v 2 -c 1 > -- This will fail with POD coverage messages. > exit >3) apply this patch to qa-test-tools >4) re do step 2 > -- POD coverage messages will be cleared up. >--- > QohA/Report.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/QohA/Report.pm b/QohA/Report.pm >index 148d956..d79ad6e 100644 >--- a/QohA/Report.pm >+++ b/QohA/Report.pm >@@ -72,6 +72,8 @@ sub to_string { > @diff = grep {not $subs_before{$_}} @{ $after->{subs} }; > if ( @diff ) { > @diff = map {"POD is missing for $_"} @diff; >+ } elsif ( scalar @{ $after->{subs} } == 0 && scalar @{ $before->{subs} } == 0 ) { >+ # This is perfectly okay. > } elsif ( $before->{rating} > $after->{rating} ) { > # Not sure we can reach this > @diff = ('POD coverage was greater before, try perl -MPod::Coverage=PackageName -e666'); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20357
:
72519
| 72521