2 ms·
That kind of function would be tested with couple of correct files and several, wrong ones. Splitting everything up and testing separately, make sense if you a
by unionpivo 6y ago
That kind of function would be tested with couple of correct files and several, wrong ones.
Splitting everything up and testing separately, make sense if you are building a library or general user program. For program where you control whole toolchain its overkill.
You need to be able to read correct image and hopefully not segfault on bad one. And this function does that.