mirror of
https://github.com/meekrosoft/fff
synced 2026-01-23 00:15:59 +01:00
New feature: no longer need to specify argument count in the declaration
This commit is contained in:
@@ -25,11 +25,11 @@ struct MyStruct {
|
||||
int y;
|
||||
};
|
||||
|
||||
FAKE_VOID_FUNC1(voidfunc1, int);
|
||||
FAKE_VOID_FUNC2(voidfunc2, char, char);
|
||||
FAKE_VALUE_FUNC0(long, longfunc0);
|
||||
FAKE_VALUE_FUNC0(enum MYBOOL, enumfunc0);
|
||||
FAKE_VALUE_FUNC0(struct MyStruct, structfunc0);
|
||||
FAKE_VOID_FUNC(voidfunc1, int);
|
||||
FAKE_VOID_FUNC(voidfunc2, char, char);
|
||||
FAKE_VALUE_FUNC(long, longfunc0);
|
||||
FAKE_VALUE_FUNC(enum MYBOOL, enumfunc0);
|
||||
FAKE_VALUE_FUNC(struct MyStruct, structfunc0);
|
||||
|
||||
|
||||
void setup()
|
||||
@@ -254,6 +254,7 @@ TEST_F(FFFTestSuite, default_constants_can_be_overridden)
|
||||
ASSERT_EQ(OVERRIDE_ARG_HIST_LEN, voidfunc2_arg_history_len);
|
||||
}
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
setbuf(stdout, NULL);
|
||||
|
||||
Reference in New Issue
Block a user