File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ tests_SOURCES = \
1919 TestSwitchContainer.cpp \
2020 TestSwitchConfigContainer.cpp \
2121 TestSkipRecordAttrContainer.cpp \
22- TestServerConfig.cpp
22+ TestServerConfig.cpp \
23+ TestRedisVidIndexGenerator.cpp
2324
2425tests_CXXFLAGS = $(DBGFLAGS ) $(AM_CXXFLAGS ) $(CXXFLAGS_COMMON )
2526tests_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