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

I’m not sure I manage to follow the author correctly, but to me it seems that by “mock” they strictly refer to external mocking libraries, in the sense of JS’s `testdouble` [1] or Java’s `Mockito` [2]. The static fake object as returned by `LoginClient.createNull().getUserInfo(...)` appears to be a “Nullable” for them.

[1] https://www.npmjs.com/package/testdouble

[2] https://site.mockito.org/



> Folks in the know use mocks and spies (I say “mocks” for short in this article)




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

Search: