Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I would be in the camp that says two methods calling each other are an integration, but I avoid mocking as much as possible.

But if you need to use mocking there heavily, your code is not structured well: look for functional style and acyclic directed graph structure of calls.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: