Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: tests? #1

Open
dbkaplun opened this issue Nov 2, 2016 · 2 comments
Open

Feature: tests? #1

dbkaplun opened this issue Nov 2, 2016 · 2 comments

Comments

@dbkaplun
Copy link

dbkaplun commented Nov 2, 2016

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!

@mikaa123
Copy link
Owner

mikaa123 commented Nov 2, 2016

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.

@gavrilovmiroslav
Copy link

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 dbkaplun changed the title Feature request: tests? Feature: tests? May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants