[SCANNER]add hyperscan libs

This commit is contained in:
liuwentan
2022-10-27 17:58:52 +08:00
parent 6d7354a866
commit 6881611975
18 changed files with 3254 additions and 11 deletions

20
test/maat_api_gtest.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include <gtest/gtest.h>
#include "../include/maat/maat.h"
TEST(EQ_Test, Always_True) {
EXPECT_EQ(1, 1);
}
TEST(maat_api, maat_scan_string) {
int ret = maat_scan_string(nullptr, 0, nullptr, nullptr, 0);
EXPECT_EQ(ret, 0);
}
int main(int argc, char ** argv)
{
int ret=0;
::testing::InitGoogleTest(&argc, argv);
ret=RUN_ALL_TESTS();
return ret;
}