commander icon indicating copy to clipboard operation
commander copied to clipboard

Unit tests

Open rhersen opened this issue 13 years ago • 3 comments

I wrote some unit tests for commander.c. I had to make exit() a member function of struct command in order to mock it, and I'm also using setjmp/longjmp to stop execution and continue the test suite whenever the mocked exit() is called.

rhersen avatar Jun 26 '12 21:06 rhersen

+1

beakr avatar Jan 11 '13 03:01 beakr

+1 as well, just need to review and update this a bit

tj avatar Jan 11 '13 17:01 tj

idk how i feel about command_t->exit, but needs a rebase either way

stephenmathieson avatar Dec 09 '13 00:12 stephenmathieson