Skip to content

FIX: optional_callbacks#151

Merged
eproxus merged 1 commit into
eproxus:masterfrom
soranoba:fix/optional_callbacks
Sep 7, 2015
Merged

FIX: optional_callbacks#151
eproxus merged 1 commit into
eproxus:masterfrom
soranoba:fix/optional_callbacks

Conversation

@soranoba
Copy link
Copy Markdown
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
Copy Markdown
Owner

eproxus commented Sep 7, 2015

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

@soranoba
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants