News for hackers. Stuff that matters.
Re:A tiling window manager written in Rust by Heurtebise on Thursday December 18, 2014 @04:53PM (#8769865)
> 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.

There are no comments on this comment yet.