Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Critique requested for module code - QuickMemo+ reader

by Lotus1 (Vicar)
on Jan 25, 2021 at 00:58 UTC ( #11127420=note: print w/replies, xml ) Need Help??


in reply to Re: Critique requested for module code - QuickMemo+ reader
in thread Critique requested for module code - QuickMemo+ reader

This is a very, very simple distribution so 100% coverage or at minimum extremely close to it should be trivial.

Part of the problem I had with writing tests was that it is difficult to trigger some of the Archive::Zip errors. To test for read errors I used a hex editor to garble the JSON file in the zip archive and was able to trigger that one. To me that seems like an unlikely edge case but I'll continue looking at other modules for more examples of what to test. It's such a small module there aren't a lot of things to test. Testing warnings and carp is something I just recently found so I was happy and proud to get that to work. I found myself bulletproofing the code as I wrote the tests and thought of things that could go wrong.

Thanks for all the suggestions so far!

  • Comment on Re^2: Critique requested for module code - QuickMemo+ reader

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11127420]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2023-05-31 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?