✨ feat(packet_io): add gtest_packet_io
This commit is contained in:
15
src/packet_io/test/gtest_packet_io.cpp
Normal file
15
src/packet_io/test/gtest_packet_io.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "packet_io.h"
|
||||
|
||||
TEST(PACKET_IO_Test, packet_io_create) {
|
||||
EXPECT_EQ(packet_io_create(PACKET_IO_PCAP, "TEST"), nullptr);
|
||||
}
|
||||
|
||||
int main(int argc, char ** argv)
|
||||
{
|
||||
int ret=0;
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
ret=RUN_ALL_TESTS();
|
||||
return ret;
|
||||
}
|
||||
Reference in New Issue
Block a user