ThrowTheSwitch / CMock

CMock - Mock/stub generator for C
http://throwtheswitch.org
MIT License
672 stars 273 forks source link

How CMock and unity handles static function and variables? #371

Closed NimaAgm closed 6 months ago

laurensmiers commented 2 years ago

It does nothing special for static variables/functions, you have to handle it yourself (zero-ing/initializing after a test, etc.) I just re-init/zero them out in my setup/teardown functions.