We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
直接用的README里的示例: ` // 待测函数 int foobar(int x) { return x; }
TEST_F(FooTest, foobar_test) {
// 测试时,像下面这样就可以mock EMOCK(foobar) .stubs() .with(any()) // 约束匹配任意输入 .will(returnValue(1)); // 调用时返回1 // 调用会返回1 EXPECT_EQ(foobar(0), 1);
} ` 然后报了异常:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
直接用的README里的示例:
`
// 待测函数
int foobar(int x) {
return x;
}
TEST_F(FooTest, foobar_test)
{
}
`
然后报了异常:
The text was updated successfully, but these errors were encountered: