I am building an API client. The structure is something like this:
├── api │ ├── base.ex │ ├── categories.ex │ ├── search.ex │ └── users.ex └── api.ex
api.ex is just a bunch of
I want that developers use the library through the
Api module. What would be the better way to write tests? I have now a good coverage for
Users and 0 tests for
Api. Since it only delegates, then is there a point to duplicate the tests? Or maybe there is a way to check that delegation is setup correctly? Or since the
Api module is intended to be used, then all tests should go there (but then it will get quite huge)?
What do you think?