Comments (1)
Do you mean putting the decorator implementations in a separate file? I'm not sure sure about that because this way it's clear that the tests are testing what the decorators are producing, if you know what I mean.
It makes sense to split the test case into several separate cases, with one decorator module and one module using the decorators per test case. The file is indeed quite large now.
Something like:
decorator/basic_test.exs
decorator/function_result_test.exs
decorator/multiple_clauses_test.exs
- etc..
from decorator.
Related Issues (20)
- Elixir 1.5 Errors HOT 4
- OTP 20 / Elixir 1.5.0-rc.0 Rescue Emits Compiler Warning HOT 4
- Decorator is not compatible with `@impl` directive introduced in Elixir 1.5 HOT 4
- [Question] How to decorate all functions in a module? HOT 5
- Not working correctly when used with function head without body HOT 2
- Not working correctly when used for function with different arities HOT 2
- Default decoration for multiple function heads HOT 1
- Decorator used with Ecto HOT 3
- Release master HOT 4
- [Question] What to do about used/unused variable warnings? HOT 8
- [Question] is it possible to stack decorators? HOT 5
- Using two different decorator modules in the same file creates duplicate functions
- Can't Mock code used within the decorators HOT 1
- Can't use other modules macros while using decorator HOT 2
- Function result is `[]` when decorating a function head HOT 5
- Can't issue good compile-time errors re bad arguments
- Return other
- Unquoting default params results in elixir_locals.ensure_no_undefined_local/3 HOT 2
- Multiple decorators order
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from decorator.