p5pclub / devel-quickcover

Quick & dirty code coverage for Perl
Other
7 stars 5 forks source link

perl -MDevel::QuickCover -E '' produces invalid JSON #11

Open vytas-dauksa opened 8 years ago

vytas-dauksa commented 8 years ago

perl -MDevel::QuickCover -E ''

produces invalid JSON: {"date":"2016-07-01","time":"16:28:57","metadata":{},"files": {"/usr/share/perl/5.22/feature.pm":{"covered":[8,10,28,36,37,38,39,40,41,42,43,44,45,46,48,49,50,55,61,63,67,83,84,86,87,90,91,92,93,94,97,98,99,100,101,107,108,110,113,114,115,140],"present":[8,10,28,36,37,38,39,40,41,42,43,44,45,46,48,49,50,55,61,63,67,71,74,75,76,79,83,84,86,87,90,91,92,93,94,97,98,99,100,101,102,103,107,108,110,113,114,115,117,118,124,125,130,131,136,137,140],"phases":{"BEGIN":[8,10,28,36,37,38,39,40,41,42,43,44,45,46,48,49,50,55,61,63,67,71,74,75,76,79,83,84,86,87,90,91,92,93,94,97,98,99,100,101,102,103,107,108,110,113,114,115,117,118,124,125,130,131,136,137,140],"CHECK":[],"INIT":[],"RUN":[],"END":[],"DESTRUCT":[]}, "-e":{"covered":[],"present":[],"phases":{"BEGIN":[],"CHECK":[],"INIT":[],"RUN":[],"END":[],"DESTRUCT":[]}}}}

it lacks last closing curly bracket - }.

gonzus commented 8 years ago

Thank you for reporting this, will take a look at it, hopefully this weekend.

On 01/07/2016 17:31, Vytas Dauksa wrote:

perl -MDevel::QuickCover -E ''

produces invalid JSON: {"date":"2016-07-01","time":"16:28:57","metadata":{},"files": {"/usr/share/perl/5.22/feature.pm":{"covered":[8,10,28,36,37,38,39,40,41,42,43,44,45,46,48,49,50,55,61,63,67,83,84,86,87,90,91,92,93,94,97,98,99,100,101,107,108,110,113,114,115,140],"present":[8,10,28,36,37,38,39,40,41,42,43,44,45,46,48,49,50,55,61,63,67,71,74,75,76,79,83,84,86,87,90,91,92,93,94,97,98,99,100,101,102,103,107,108,110,113,114,115,117,118,124,125,130,131,136,137,140],"phases":{"BEGIN":[8,10,28,36,37,38,39,40,41,42,43,44,45,46,48,49,50,55,61,63,67,71,74,75,76,79,83,84,86,87,90,91,92,93,94,97,98,99,100,101,102,103,107,108,110,113,114,115,117,118,124,125,130,131,136,137,140],"CHECK":[],"INIT":[],"RUN":[],"END":[],"DESTRUCT":[]}, "-e":{"covered":[],"present":[],"phases":{"BEGIN":[],"CHECK":[],"INIT":[],"RUN":[],"END":[],"DESTRUCT":[]}}}}

it lacks last closing curly bracket - }.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/p5pclub/devel-quickcover/issues/11, or mute the thread https://github.com/notifications/unsubscribe/AAMuom52ytibgyuHZ3xhNgXkxsL8mX3Dks5qRTLFgaJpZM4JDP5s.

gonzus commented 8 years ago

Fixed on 4ef1553284fd4326647cb5c4e795bc31f1a6abf0, will soon cut a new release. Thanks for reporting this.