这是indexloc提供的服务,不要输入任何密码
Skip to content

Mocking static methods of the class #128

@jkrajniak

Description

@jkrajniak

Hi,

Is there any way to mock static methods of the class. I've tried but it fails. Basically

FAKE_VOID_FUNC(BaselineCalib::setModel)

where setModel is a static method of BaselineCalib class. Now it returns with the error

tests/fff.h:154:36: error: qualified name does not name a class before '{' token
  154 |     typedef struct FUNCNAME##_Fake { \

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions