File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ tests_SOURCES = \
19
19
TestSwitchContainer.cpp \
20
20
TestSwitchConfigContainer.cpp \
21
21
TestSkipRecordAttrContainer.cpp \
22
- TestServerConfig.cpp
22
+ TestServerConfig.cpp \
23
+ TestRedisVidIndexGenerator.cpp
23
24
24
25
tests_CXXFLAGS = $(DBGFLAGS ) $(AM_CXXFLAGS ) $(CXXFLAGS_COMMON )
25
26
tests_LDADD = $(LDADD_GTEST ) $(top_srcdir ) /lib/libSaiRedis.a -lhiredis -lswsscommon -lpthread -L$(top_srcdir ) /meta/.libs -lsaimetadata -lsaimeta -lzmq $(CODE_COVERAGE_LIBS )
Original file line number Diff line number Diff line change
1
+ #include " RedisVidIndexGenerator.h"
2
+
3
+ #include < gtest/gtest.h>
4
+
5
+ #include < memory>
6
+
7
+ using namespace sairedis ;
8
+
9
+ TEST (RedisVidIndexGenerator, reset)
10
+ {
11
+ auto db = std::make_shared<swss::DBConnector>(" ASIC_DB" , 0 );
12
+
13
+ RedisVidIndexGenerator g (db, " FOO" );
14
+
15
+ g.reset ();
16
+ }
You can’t perform that action at this time.
0 commit comments