From e00118bca392e8d27ee9a4d9e90ca5aed9f579d1 Mon Sep 17 00:00:00 2001 From: Keshav Gupta Date: Tue, 9 Apr 2024 23:11:23 -0700 Subject: [PATCH] Add tests for code coverage Signed-off-by: Keshav Gupta --- unittest/lib/test_sai_redis_dash_eni.cpp | 3 +++ unittest/vslib/test_sai_vs_dash_eni.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/unittest/lib/test_sai_redis_dash_eni.cpp b/unittest/lib/test_sai_redis_dash_eni.cpp index 5949762c6..4dcac45a4 100644 --- a/unittest/lib/test_sai_redis_dash_eni.cpp +++ b/unittest/lib/test_sai_redis_dash_eni.cpp @@ -28,6 +28,9 @@ TEST(libsairedis, dash_eni) EXPECT_NE(SAI_STATUS_SUCCESS, api->remove_eni(0)); EXPECT_NE(SAI_STATUS_SUCCESS, api->set_eni_attribute(0,0)); EXPECT_NE(SAI_STATUS_SUCCESS, api->get_eni_attribute(0,0,0)); + EXPECT_NE(SAI_STATUS_SUCCESS, api->get_eni_stats(0,0,0,0)); + EXPECT_NE(SAI_STATUS_SUCCESS, api->get_eni_stats_ext(0,0,0,SAI_STATS_MODE_READ,0)); + EXPECT_NE(SAI_STATUS_SUCCESS, api->clear_eni_stats(0,0,0)); EXPECT_NE(SAI_STATUS_SUCCESS, api->create_enis(0,0,0,0,SAI_BULK_OP_ERROR_MODE_IGNORE_ERROR,0,0)); EXPECT_NE(SAI_STATUS_SUCCESS, api->remove_enis(0,0,SAI_BULK_OP_ERROR_MODE_IGNORE_ERROR,0)); } diff --git a/unittest/vslib/test_sai_vs_dash_eni.cpp b/unittest/vslib/test_sai_vs_dash_eni.cpp index c40c7d724..4b2dd061f 100644 --- a/unittest/vslib/test_sai_vs_dash_eni.cpp +++ b/unittest/vslib/test_sai_vs_dash_eni.cpp @@ -28,6 +28,9 @@ TEST(libsaivs, dash_eni) EXPECT_NE(SAI_STATUS_SUCCESS, api->remove_eni(0)); EXPECT_NE(SAI_STATUS_SUCCESS, api->set_eni_attribute(0,0)); EXPECT_NE(SAI_STATUS_SUCCESS, api->get_eni_attribute(0,0,0)); + EXPECT_NE(SAI_STATUS_SUCCESS, api->get_eni_stats(0,0,0,0)); + EXPECT_NE(SAI_STATUS_SUCCESS, api->get_eni_stats_ext(0,0,0,SAI_STATS_MODE_READ,0)); + EXPECT_NE(SAI_STATUS_SUCCESS, api->clear_eni_stats(0,0,0)); EXPECT_NE(SAI_STATUS_SUCCESS, api->create_enis(0,0,0,0,SAI_BULK_OP_ERROR_MODE_IGNORE_ERROR,0,0)); EXPECT_NE(SAI_STATUS_SUCCESS, api->remove_enis(0,0,SAI_BULK_OP_ERROR_MODE_IGNORE_ERROR,0)); }