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

FIX: optional_callbacks #151

Merged
merged 1 commit into from
Sep 7, 2015
Merged

Conversation

soranoba
Copy link
Contributor

@soranoba soranoba commented Sep 7, 2015

There was a case that it cannot mock the module.
This module is defined optional callback, but it isn't export this this callback functions.

This pull request fix it, but it is not the best practice...=(

eproxus added a commit that referenced this pull request Sep 7, 2015
Filter out optional_callbacks attributes
@eproxus eproxus merged commit 796964c into eproxus:master Sep 7, 2015
@eproxus
Copy link
Owner

eproxus commented Sep 7, 2015

Thanks! Maybe it would be possible to whitelist instead of blacklist these attributes?

@soranoba
Copy link
Contributor Author

soranoba commented Sep 8, 2015

Thank you for the merge.

It can maybe do, but I'm not confident that can be implemented correctly.
Probably, I think that callback is only necessary....
(If the callback is lost, behaviour_info/1 will be also lost.)

@eproxus
Copy link
Owner

eproxus commented Sep 8, 2015

True, good point. Let's leave it like this for now then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants