First release of open-appsec source code

This commit is contained in:
roybarda
2022-10-26 19:33:19 +03:00
parent 3883109caf
commit a883352f79
1353 changed files with 276290 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
#include <cmock/cmock.h>
#include "math.h"
DECLARE_FUNCTION_MOCK2(AddFunctionMock, add, int(int, int));
IMPLEMENT_FUNCTION_MOCK2(AddFunctionMock, add, int(int, int));
TEST(SpecBuildersTest, ExpectFunctionCallCompiles) {
AddFunctionMock mock;
EXPECT_FUNCTION_CALL(mock, (1, 2)).Times(0);
}
TEST(SpecBuildersTest, OnFunctionCallCompiles) {
AddFunctionMock mock;
ON_FUNCTION_CALL(mock, (1, 2));
}