Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 imbibing at the Monastery: (3)
As of 2021-10-24 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?