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
Apologies if this has already been suggested or if this is not the proper channel for suggesting feature requests. Also, I'm totally willing to make this PR myself, I just want to see how the authors feel about it before actually going about making the code changes.
Abstract stompngo.Connection to an interface to allow mock generators to mock the connection and allow for easier testing. Use a different name to not break backwards compatibility. So something like:
There are no objections to this , at least in concept.
Please pursue this yourself, and submit a PR when complete.
Please add:
Begin(...) ....
Commit(...)...
Abort(...)...
to the interface.
This package currently does not mock anything in tests. It depends on the availability of a running message broker.
Therefore, some actual mock tests would also be required in the PR.
Given the general theme of go interfaces I was thinking STOMPConnector for the interface name. But I can go either way on that.
Rule One: no external dependencies other than stdlib in the main package. Adding external dependencies to tests would be accepted assuming those dependencies appear to be stable and well supported.
Rule Two: try to use idiomatic variable names. Keep them short.
I can be flexible about rule two. Rule one, not so much.
Apologies if this has already been suggested or if this is not the proper channel for suggesting feature requests. Also, I'm totally willing to make this PR myself, I just want to see how the authors feel about it before actually going about making the code changes.
Abstract
stompngo.Connection
to an interface to allow mock generators to mock the connection and allow for easier testing. Use a different name to not break backwards compatibility. So something like:The text was updated successfully, but these errors were encountered: