meekrosoft / fff

A testing micro framework for creating function test doubles
Other
777 stars 168 forks source link

Add support for fakes with const parameters #3

Closed michahoiting closed 11 years ago

michahoiting commented 11 years ago

Using a fake function that has a const parameter leads to compiler errors. For instance using a fake for the function ‘strlcpy’ see below.

daveismith commented 11 years ago

Agreed, this feature would significantly increase the utility of fff for me.

vperron commented 11 years ago

Have been using @michahoiting 's fork with no issues for my (strongly) const parameterized code. Maybe it'd be time considering pulling that request ? Many thanks for that microframework, has been incredibly helpful !

meekrosoft commented 11 years ago

I'd love to include this feature but I haven't received a pull request so far. Let me take a look at how to get his changes in here.

meekrosoft commented 11 years ago

Hi folks, I have merged Micha's const parameter support. Many thanks to Micha for sharing! Cheers, Mike