3 ms·
I’m struggling to see how nullables are different from mocks it just does the mocking in the production code. In the example I would just replace GitWriter with
by jbjbjbjb 2y ago
I’m struggling to see how nullables are different from mocks it just does the mocking in the production code. In the example I would just replace GitWriter with a mock of GitWriter and it achieves the same thing, no?
- rco8786 2y agoYea that's exactly what I am seeing also, but I'm open to the idea that I am missing something.
- bluGill 2y agoWrite() can be called byte by byte, with the full buffer to write, or anything in between. in test what mattere is the write thing is written not how you many times you call write.