Edit | All Contacts | Destroy
Send Wingman info email | Send pricing email | Send email asking for more for BMR LTD
  • Name: Glen Shearer
  • Email: gshearer@slendertone.com
  • Company name: BMR LTD
  • Company url: www.slendertone.com
  • Office phone: +353 91 774321
  • Mobile phone: +353 85-727-3752
  • Company location: Parkmore Industrial Park, Galway, Ireland
  • Remote delivery timezones:
  • Interest: Other
  • Number of people:
  • How did you find us: Other
  • Initial contact date:
  • Next follow up date: 2018-02-01 09:29:21 UTC
  • Message: Hi James, Glen here, I attended your TDD training course in Eindhoven last year. I just have a query regarding testing static callback functions. My apologies if this is an incorrect form to contact you by. I am currently applying TDD to a new project which started this year. Our software is designed around timer callback functions. The class I am currently developing passes the address of a static callback function to the timer, then programs the timer. When the timer interrupts, the callback function is called. I have currently mocked out the timer. This is working fine. Where I am stuck is how to test the static callback function. 1) Since I am mocking out the timer, the callback wont occur. 2) Since the callback is static in the class under test, I cannot call it from my test file. Also the static callback function calls further static functions within the class under test. 3) I cannot stub out the callback with CMock because I cannot reference the static function in my test file. Any help with this problem would be much appreciated. I am currently using Unity and CMock tools with IAR Embedded Workbench. I am not developing on hardware. If you require more information please let me know Thanks James. Regards Glen
  • Timeframe: Immediate
  • Domain: wingman-sw.com
  • Remote IP: 84.203.176.188
  • Request URI:
  • Notes:
  • Edit | All Contacts | Destroy