Skip Menu |

This queue is for tickets about the Pod-Coverage CPAN distribution.

Report information
The Basics
Id: 132577
Status: open
Priority: 0/
Queue: Pod-Coverage

People
Owner: Nobody in particular
Requestors: ramin [...] firstsource.tech
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: The module doesn't check anonymous subs.
Date: Thu, 14 May 2020 12:24:34 +0430
To: "bug-Pod-Coverage" <bug-Pod-Coverage [...] rt.cpan.org>
From: "Roholah Sadegh Nasab (Ramin)" <ramin [...] firstsource.tech>
If we have a sub like this: my $test_sub = sub {       return 1;       } The Pod::Coverage module just ignores the function whether it has a POD or not. Is there any way to solve this problem? thanks. Best regards, Ramin
On Thu May 14 04:09:51 2020, ramin@firstsource.tech wrote: Show quoted text
> If we have a sub like this: > > > > my $test_sub = sub { > >       return 1; > >       } > > > > The Pod::Coverage module just ignores the function whether it has a > POD or not. > > > > Is there any way to solve this problem? >
What would "covered" even mean for a sub like this? The sub is unnamed, and not callable outside the module. Pod is generally documentation for users, not authors of a module.