So I've been looking at unit testing the code at my company and the current unit testing framework relies heavy on virtual interfaces in order to be able to easily mock classes.
My issue with this is that this adds real world runtime overhead in our shipped code because of these interfaces. In essence we are only adding virtual methods for the pure purpose of ease of unit testing.
I think there could be a better way for us to be able to mock classes without needing virtual but I thought I would ask how others do it / recommend it from their experience.
Personally I was exploring the avenue of CRTP in order to help mock classes/interfaces but I'm not sure if this is over complicated. Does anyone have any advice?