fff icon indicating copy to clipboard operation
fff copied to clipboard

A testing micro framework for creating function test doubles

Results 65 fff issues
Sort by recently updated
recently updated
newest added

Add support for other function signature types (like std::function and pw::Function)

This uses some __VA_ARGS__ counting and iteration macros to reduce the boilerplate required when verifying calls to functions with multiple parameters, setting up return value sequences etc. Also allows to...

Feature
PR

This fixes #81 where some return statements that were generated unconditionally, leading to unreachable return statements.

fff.h woudn't compile under gcc 9.20 with all warnings enabled. Adding the [pragma system_header](https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html) supresses such warnings. Thank you for your contribution. Before submitting this PR, please make sure: -...

This is a documentation update: Functions without arguments need FAKE_VALUE_FUNC0 instead of FAKE_VALUE_FUNC, otherwise C compiler will emit warnings like ISO C99 requires at least one argument for the "..."...

- [x] Your code builds clean without any errors or warnings - [x] You are not breaking consistency - [ ] You have added unit tests - [x] All tests...

This should properly resolve https://github.com/meekrosoft/fff/issues/51

> Thank you for your contribution. > > Before submitting this PR, please make sure: > > - [x] Your code builds clean without any errors or warnings > -...

What's the best way to mock functions that take references/pointer arguments that usually point to temporary (stack allocated) variables? If you have a lot of this in your code, making...

Feature

**Is your feature request related to a problem? Please describe.** I'd like to be able to use capture groups when assigning a custom fake, but this isn't possible when the...