▲ 4 r/cpp_questions
Any tips on how to make lower level code more testable
I have been learn cpp for some months and started doing a project of making a chat server with a custom event loop using epoll for learning purposes.
But current i am not really sure on how to make these lower level code like interacting with os more testable and also on how to test it. I would like to have some tips/resources on this.
The trial and error method has been a bit frustrating 😅
Also ways to check and reduce unnecessary allocation would also be nice.
u/Cold-Armadillo-154 — 1 day ago