-
Notifications
You must be signed in to change notification settings - Fork 2
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
Broken down internals (modules per "feature") #38
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I would've kept a single module. I think that was easier to explain on the training, since it will involve less indirection.
But I don't strongly dislike this change. I'll approve.
We can wait until after the training 😄 (or not merge, if you prefer, even; I don't mind seeing pull requests rejected - they start out by being possibilities, to me). I'll keep this here (unmerged), for the time being... For 0.1.0 (the training version, I just wanna have some examples ready, as well as the documentation as a |
2e5871e
to
92a499e
Compare
Updated as per most recent changes (lest it becomes too outdated). |
I get rid of the caveat by making sure a non matching mocker dies
@@ -148,52 +102,49 @@ run_expects(Message, Expects) -> | |||
maps:fold(fun (_Id, _Expect, {{'$nuntius', match}, _} = Result) -> | |||
Result; | |||
(_Id, Expect, {'$nuntius', nomatch}) -> | |||
try | |||
{{'$nuntius', match}, Expect(Message)} | |||
try Expect(Message) of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this approach is also valid in bringing more clarity to the function_clause
caveat.
Fixes #33.
If you feel we should also sort the function definitions, I'm up for it.
I usually keep the "internal" functions next to whatever calls them (it seems you do the same), so I would be careful to take those along with the "moved" functions.
Let me know.