LibreCat / Catmandu-MARC

Catmandu modules for working with MARC data
https://metacpan.org/release/Catmandu-MARC
Other
8 stars 10 forks source link

Tests fail (with newest Catmandu?) #71

Closed eserte closed 7 years ago

eserte commented 7 years ago

My smoker systems started to report the following failure:

Can't call method "fix" on an undefined value at /tmpfs/.cpan-build-cpansand/2017062218/Catmandu-MARC-1.13-nT2Opu/blib/lib/Catmandu/Fix/Bind/marc_each.pm line 33, <GEN0> line 1.

Trace begun at (eval 351) line 41
Catmandu::Fix::__ANON__('HASH(0x33b5a38)') called at /home/cpansand/.cpan/build/2017062218/Catmandu-1.0601-ByIZC8/blib/lib/Catmandu/Fix.pm line 139
Catmandu::Fix::__ANON__('HASH(0x33b5a38)') called at /home/cpansand/.cpan/build/2017062218/Catmandu-1.0601-ByIZC8/blib/lib/Catmandu/Iterable.pm line 160
Catmandu::Iterable::__ANON__ at /home/cpansand/.cpan/build/2017062218/Catmandu-1.0601-ByIZC8/blib/lib/Catmandu/Iterable.pm line 274
Catmandu::Iterable::__ANON__ at /home/cpansand/.cpan/build/2017062218/Catmandu-1.0601-ByIZC8/blib/lib/Catmandu/Iterable.pm line 87
Catmandu::Iterable::each('Catmandu::Iterator=CODE(0x3266280)', 'CODE(0x1c5b750)') called at t/16-marc-each.t line 46
# 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/16-marc-each.t ..................... 
Dubious, test returned 255 (wstat 65280, 0xff00)
All 2 subtests passed 

This seems to happen if Catmandu 1.06 or later is installed. Statistical analysis (negative theta is "bad"):

****************************************************************
Regression 'mod:Catmandu'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']           1.0000          0.0000    14894967614114944.00
[1='eq_1.0306']       0.0000          0.0000       2.89
[2='eq_1.04']         0.0000          0.0000       4.73
[3='eq_1.0502']       0.0000          0.0000       4.15
[4='eq_1.0504']       0.0000          0.0000       2.89
[5='eq_1.0506']       0.0000          0.0000       4.35
[6='eq_1.0507']       0.0000          0.0000       4.74
[7='eq_1.06']        -1.0000          0.0000    -9420404667009434.00
[8='eq_1.0601']      -1.0000          0.0000    -14074421461896150.00

R^2= 1.000, N= 87, K= 9
****************************************************************
phochste commented 7 years ago

A fix is on its way to CPAN