2 ms·
> As for the xlib stuff, I can't really write tests for that. I do that by wrapping the C APIs into traits. I have some macros that generate both the proper im
by Heurtebise 12y ago
> As for the xlib stuff, I can't really write tests for that.
I do that by wrapping the C APIs into traits. I have some macros that generate both the proper implementations with ffi calls and mock implementations. Then I can write extensive tests for the high level binding's low level behavior using properly set up mocks.