You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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.
dbkaplun
changed the title
Feature request: tests?
Feature: tests?
May 4, 2018
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!
The text was updated successfully, but these errors were encountered: