Subject: | perlcritic test may fail |
Some of my smoker machines show the following failure:
# Failed test 'Test::Perl::Critic for "blib/lib/Performance/Probability.pm"'
# at /opt/perl-5.24.1-RC3/lib/site_perl/5.24.1/Test/Perl/Critic.pm line 104.
#
# Private Member Data shouldn't be accessed directly at line 58, column 23. Accessing an objects data directly breaks encapsulation and should be avoided. Example: $object->{ some_key }. (Severity: 5)
# Private Member Data shouldn't be accessed directly at line 58, column 39. Accessing an objects data directly breaks encapsulation and should be avoided. Example: $object->{ some_key }. (Severity: 5)
... (snip) ...
# Private Member Data shouldn't be accessed directly at line 214, column 32. Accessing an objects data directly breaks encapsulation and should be avoided. Example: $object->{ some_key }. (Severity: 5)
# Found use of die. Use an exception instead at line 215, column 13. Exception objects should be used instead of the standard Perl error mechanism. (Severity: 4)
# Subroutine "machine_epsilon" is neither declared nor explicitly imported at line 232, column 19. This might be a major bug. (Severity: 4)
# Subroutine "cdf" not exported by "Math::Gauss::XS" at line 237, column 19. Violates encapsulation. (Severity: 4)
t/perlcritic.t ...............
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests