ovid / codegen-protection Goto Github PK
View Code? Open in Web Editor NEWAdd protection for auto-generated code
License: Other
Add protection for auto-generated code
License: Other
In some situations (non-English locale in effect + older perl (< 5.22 or so?)) t/test_module.t fails like this:
# Failed test 'subtest 'We should not be able to read non-existent files' of '' compare diag'
# at t/test_module.t line 64.
# 'Cannot open 'no such file' for reading: Datei oder Verzeichnis nicht gefunden at /usr/home/cpansand/.cpan/build/2021041911/CodeGen-Protection-0.05-2/blib/lib/Test/CodeGen/Protection.pm line 43.
# '
# doesn't match '(?^:Cannot open 'no such file' for reading: No such file or directory)'
# Got diag (194 bytes):
# 'Cannot open 'no such file' for reading: Datei oder Verzeichnis nicht gefunden at /usr/home/cpansand/.cpan/build/2021041911/CodeGen-Protection-0.05-2/blib/lib/Test/CodeGen/Protection.pm line 43.'
# Expected diag (70 bytes):
# '(?^:Cannot open 'no such file' for reading: No such file or directory)'
# Looks like you failed 1 test of 7.
# Failed test 'Testing non-existent files is not fatal'
# at t/test_module.t line 70.
# Looks like you failed 1 test of 5.
t/test_module.t ........
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/5 subtests
It seems that Perl::Tidy has to be specified as a prereq:
...
Can't locate Perl/Tidy.pm in @INC (you may need to install the Perl::Tidy module) (@INC contains: ...
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 8.
t/oo-interface.t .......
Dubious, test returned 2 (wstat 512, 0x200)
All 8 subtests passed
Can't locate Perl/Tidy.pm in @INC (you may need to install the Perl::Tidy module) (@INC contains: ...
t/perl.t ...............
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
Can't locate Perl/Tidy.pm in @INC (you may need to install the Perl::Tidy module) (@INC contains: ...
t/protection.t .........
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
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.