tekki / mojo-file-role-digest Goto Github PK
View Code? Open in Web Editor NEWA role for Mojo::File to calculate digests
A role for Mojo::File to calculate digests
On some of my smokers the test suite fails like this:
PERL_DL_NONLAZY=1 "/opt/perl-5.28.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
String found where operator expected at /home/cpansand/.cpan/build/2019121018/Mojo-File-Role-Digest-0.02-1/blib/lib/Mojo/File/Role/Digest.pm line 6, near "requires 'open'"
(Do you need to predeclare requires?)
# Failed test 'use Mojo::File::Role::Digest'
# at t/00-basic.t line 35.
# syntax error at /home/cpansand/.cpan/build/2019121018/Mojo-File-Role-Digest-0.02-1/blib/lib/Mojo/File/Role/Digest.pm line 6, near "requires 'open'"
# BEGIN not safe after errors--compilation aborted at /home/cpansand/.cpan/build/2019121018/Mojo-File-Role-Digest-0.02-1/blib/lib/Mojo/File/Role/Digest.pm line 8.
# Compilation failed in require at (eval 16) line 1.
# BEGIN failed--compilation aborted at (eval 16) line 1.
# Failed test 'Pod coverage on Mojo::File::Role::Digest'
# at t/00-basic.t line 37.
# Mojo::File::Role::Digest: requiring 'Mojo::File::Role::Digest' failed
# Looks like you failed 2 tests of 7.
t/00-basic.t ..
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/7 subtests
String found where operator expected at /home/cpansand/.cpan/build/2019121018/Mojo-File-Role-Digest-0.02-1/blib/lib/Mojo/File/Role/Digest.pm line 6, near "requires 'open'"
(Do you need to predeclare requires?)
syntax error at /home/cpansand/.cpan/build/2019121018/Mojo-File-Role-Digest-0.02-1/blib/lib/Mojo/File/Role/Digest.pm line 6, near "requires 'open'"
BEGIN not safe after errors--compilation aborted at /home/cpansand/.cpan/build/2019121018/Mojo-File-Role-Digest-0.02-1/blib/lib/Mojo/File/Role/Digest.pm line 8.
Compilation failed in require at /home/cpansand/.cpan/build/2019121018/Role-Tiny-2.001004-1/blib/lib/Role/Tiny.pm line 52.
Statistical analysis suggests that this happens if Mojolicious is too old, so maybe the minimum prereq version should be adjusted:
****************************************************************
Regression 'mod:Mojolicious'
****************************************************************
Name Theta StdErr T-stat
[0='const'] -0.0000 0.0000 -1.14
[1='eq_8.12'] 0.0000 0.0000 2.79
[2='eq_8.17'] 0.0000 0.0000 0.00
[3='eq_8.23'] 1.0000 0.0000 9380018148277760.00
[4='eq_8.26'] 1.0000 0.0000 9380018148277762.00
[5='eq_8.27'] 1.0000 0.0000 10108205955228344.00
R^2= 1.000, N= 44, K= 6
****************************************************************
t/01-role.t fails on some of my smokers like this:
Can't locate object method "SUPPORTS_QX" via package "Mojo::File__WITH__Mojo::File::Role::Digest" at t/01-role.t line 49.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 10.
t/01-role.t ...
Dubious, test returned 255 (wstat 65280, 0xff00)
All 10 subtests passed
Statistical analysis suggests that this happens if Role::Tiny is too old, so if this is really the case, then a minimum version (2.001003) should be specified:
****************************************************************
Regression 'mod:Role::Tiny'
****************************************************************
Name Theta StdErr T-stat
[0='const'] 0.0000 0.0000 1.81
[1='eq_2.000005'] 0.0000 0.0000 2.57
[2='eq_2.000006'] -0.0000 0.0000 -5.13
[3='eq_2.000008'] 0.0000 0.0000 1.71
[4='eq_2.001003'] 1.0000 0.0000 14149838032705570.00
[5='eq_2.001004'] 1.0000 0.0000 15945061089413992.00
R^2= 1.000, N= 41, K= 6
****************************************************************
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.