Skip to content

Commit

Permalink
address comments and add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed Nov 10, 2023
1 parent d747a98 commit dd94272
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ namespace RSUHealthMonitor
{
vector<string> requiredFields = {"rsuID", "rsuMibVersion", "rsuFirmwareVersion", "rsuManufacturer", "rsuGpsOutputString", "rsuMode", "rsuChanStatus"};
ASSERT_TRUE(_rsuWorker->isAllRequiredFieldsPresent(RSUMIB_4_1, requiredFields));

requiredFields = {"rsuID", "rsuMibVersion", "rsuFirmwareVersion"};
ASSERT_FALSE(_rsuWorker->isAllRequiredFieldsPresent(RSUMIB_4_1, requiredFields));
}

TEST_F(test_RSUHealthMonitorWorker, ParseRSUGPS)
Expand Down

0 comments on commit dd94272

Please sign in to comment.