avkhozov / test-mojo-session Goto Github PK
View Code? Open in Web Editor NEWTest::Mojo::Session
Home Page: https://metacpan.org/pod/Test::Mojo::Session
License: Artistic License 2.0
Test::Mojo::Session
Home Page: https://metacpan.org/pod/Test::Mojo::Session
License: Artistic License 2.0
As per subject. Sample fail report:
http://www.cpantesters.org/cpan/report/52071858
HTH&&Thanks,
(Disclaimer: this was discovered by statistical analysis, I'm not speaking as a user)
In Mojolicious 8.13 both the cookie name and value are signed, so the _session_extract
fails as it expects only the cookie value to be signed:
Here is the Mojolicious update that breaks it: mojolicious/mojo@3594662
My smoker systems started to report the following test failure:
Can't locate object method "_test" via package "Test::Mojo::Session" at /usr/home/cpansand/.cpan/build/2020041914/Test-Mojo-Session-1.05-2/blib/lib/Test/Mojo/Session.pm line 38.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 2.
t/Test-Mojo-Session.t ..
Dubious, test returned 255 (wstat 65280, 0xff00)
All 2 subtests passed
Statistical analysis suggests that this happens with Mojolicious 8.36:
****************************************************************
Regression 'mod:Mojolicious'
****************************************************************
Name Theta StdErr T-stat
[0='const'] 1.0000 0.0000 16288096651286444.00
[1='eq_7.05'] 0.0000 0.0000 1.96
[2='eq_7.18'] 0.0000 0.0000 1.60
[3='eq_7.33'] 0.0000 0.0000 2.02
[4='eq_7.55'] 0.0000 0.0000 1.60
[5='eq_7.58'] 0.0000 0.0000 1.60
[6='eq_7.70'] 0.0000 0.0000 1.85
[7='eq_7.84'] 0.0000 0.0000 1.92
[8='eq_8.05'] 0.0000 0.0000 1.60
[9='eq_8.09'] 0.0000 0.0000 2.21
[10='eq_8.11'] 0.0000 0.0000 2.24
[11='eq_8.12'] 0.0000 0.0000 3.38
[12='eq_8.13'] 0.0000 0.0000 2.64
[13='eq_8.14'] 0.0000 0.0000 2.67
[14='eq_8.15'] 0.0000 0.0000 2.69
[15='eq_8.16'] 0.0000 0.0000 4.13
[16='eq_8.17'] 0.0000 0.0000 2.95
[17='eq_8.30'] 0.0000 0.0000 2.56
[18='eq_8.33'] 0.0000 0.0000 4.85
[19='eq_8.34'] 0.0000 0.0000 1.28
[20='eq_8.35'] 0.0000 0.0000 3.58
[21='eq_8.36'] -1.0000 0.0000 -16133703625105718.00
R^2= 1.000, N= 227, K= 22
****************************************************************
The way this module replicates the behaviour of Mojolicious::Sessions
to extract session data is broken and unnecessary. You could just use a mock controller like this openQA function does.
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.