Skip to content

Commit

Permalink
Add tests for code coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Keshav Gupta <[email protected]>
  • Loading branch information
Keshavg-marvell committed Apr 10, 2024
1 parent d45e296 commit e00118b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unittest/lib/test_sai_redis_dash_eni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
3 changes: 3 additions & 0 deletions unittest/vslib/test_sai_vs_dash_eni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

0 comments on commit e00118b

Please sign in to comment.