Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find sub 'StrLength' exported by Types::Common::String #96

Closed
eserte opened this issue Dec 20, 2019 · 0 comments · Fixed by #97
Closed

Could not find sub 'StrLength' exported by Types::Common::String #96

eserte opened this issue Dec 20, 2019 · 0 comments · Fixed by #97

Comments

@eserte
Copy link

@eserte eserte commented Dec 20, 2019

On some of my smokers t/types-validate-examples.t fails:

Could not find sub 'StrLength' exported by Types::Common::String at /home/cpansand/.cpan/build/2019122011/LINE-Bot-API-1.13-1JvjtC/blib/lib/LINE/Bot/API/Types.pm line 9.
BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2019122011/LINE-Bot-API-1.13-1JvjtC/blib/lib/LINE/Bot/API/Types.pm line 9.
Compilation failed in require at t/types-validate-examples.t line 11.
BEGIN failed--compilation aborted at t/types-validate-examples.t line 11.
t/types-validate-examples.t ...................... 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 

According to statistical analysis this happens if Type-Tiny is too old:

****************************************************************
Regression 'mod:Type::Tiny'
****************************************************************
Name           	       Theta	      StdErr	 T-stat
[0='const']    	     -0.0000	      0.0000	  -5.69
[1='eq_1.000006']	      0.0000	      0.0000	   2.85
[2='eq_1.002001']	      0.0000	      0.0000	   3.60
[3='eq_1.004002']	      1.0000	      0.0000	9689688638158460.00
[4='eq_1.004004']	      1.0000	      0.0000	11242351770555976.00
[5='eq_1.006000']	      1.0000	      0.0000	10466059918702296.00
[6='eq_1.008000']	      1.0000	      0.0000	12476371511972458.00

R^2= 1.000, N= 80, K= 7
****************************************************************
gugod added a commit that referenced this issue Dec 23, 2019
This should fix: #96

According to [Changelog][1], StrLength was added in 1.003_002, which was
a DEV release. The next non-DEV release is selected instead.

Here's the related test error found on cpantesters. [Here][2],
[here][3], and [here][4]:

    Could not find sub 'StrLength' exported by Types::Common::String at /home/cpansand/.cpan/build/2019122008/LINE-Bot-API-1.13-2/blib/lib/LINE/Bot/API/Types.pm line 9.
    BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2019122008/LINE-Bot-API-1.13-2/blib/lib/LINE/Bot/API/Types.pm line 9.
    Compilation failed in require at t/types-validate-examples.t line 11.
    BEGIN failed--compilation aborted at t/types-validate-examples.t line 11.

[1]: https://metacpan.org/changes/distribution/Type-Tiny#L470
[2]: http://cpantesters.org/cpan/report/53545906-2353-11ea-af00-3e6d1f24ea8f
[3]: http://cpantesters.org/cpan/report/595f3802-2353-11ea-af00-3e6d1f24ea8f
[4]: http://cpantesters.org/cpan/report/4ddc721a-2353-11ea-af00-3e6d1f24ea8f
@gugod gugod closed this in #97 Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.