arjan / decorator

Function decorators for Elixir
MIT License
386 stars 21 forks source link

Add __decorated_functions__ function to modules using the decorator #54

Open leggebroten opened 9 months ago

leggebroten commented 9 months ago

Adds "hidden" __decorated_functions__ function to modules that use the @decorate function.

The new function allows unit tests to assert the decoration was properly called, thereby avoiding the need to assert that the behavior invoked by the @decorate call was done, and not have to assert the decorated functionality