Skip to content

MOCKER中连用will、then插桩函数行为,will的插桩不生效 #52

Description

@vradish

如下对类普通函数的插桩:

MOCKER(&ClassName:MethodName).stubs().will(invoke(FuncA)).then(invoke(FuncB))

验证时
两次都是调用FuncB,而不是第一次调用FuncA

如果插桩的是值,就没有问题
MOCKER(&ClassName:MethodName).stubs().will(returnValue(A)).then(returnValue(FuncB))

请指导。个人微信:andy_vradish

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions