News for hackers. Stuff that matters.
Re:Golang concepts from an OOP point of view by solipsism on Monday September 12, 2016 @09:20PM (#12485020)
Toward what kind of testing, mind sharing?
Re:Golang concepts from an OOP point of view by weberc2 on Tuesday September 13, 2016 @11:08AM (#12488915)
I'm not sure that there is a name for it, but I construct my unit with its real dependencies (except for I/O or IPC). I've found that mocking ends up tightly coupling your tests to the implementation (not the behavior) of your unit. This means changes to your unit's implementation (that don't change its behavior) create a bunch of test failures. Also, mocking in Go isn't as easy as in Python, so even installing the mocks is a bit of work.