imapmq
imapmq copied to clipboard
Feature: tests?
I find tests useful as a consumer of libraries because they contain short usage snippets of how the code is used. The idea is great, keep up the good work!
Thanks! :) That's something I wanted to work on from the beginning, but wasn't sure how to actually do it.
I'd say the way to go would be to stub the IMAP client using https://godoc.org/github.com/mxk/go-imap/mock. That'd probably require changing some method signatures to allow injecting the stubbed clients.
How about property-based testing? I don't know about thr support for the language, but I think it can be used to test the methods with little to no changes.