Skip to content

Commit

Permalink
Generalize UT of RateGroupDriver (#2472)
Browse files Browse the repository at this point in the history
* Generalize UT

* Swtiching `int` to `FwIndexType`

* Added cast to remove warnings

---------

Co-authored-by: M Starch <LeStarch@googlemail.com>
  • Loading branch information
SMorettini and LeStarch authored Jan 11, 2024
1 parent 76d4e5b commit 05ff444
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ void connectPorts(Svc::RateGroupDriver& impl, Svc::RateGroupDriverImplTester& te

TEST(RateGroupDriverTest,NominalSchedule) {

Svc::RateGroupDriver::DividerSet dividersSet{{{1, 0}, {2, 1}, {3, 0}}};
Svc::RateGroupDriver::DividerSet dividersSet{};
for(FwIndexType i=0; i<static_cast<FwIndexType>(Svc::RateGroupDriver::DIVIDER_SIZE); i++)
{
dividersSet.dividers[i] = {i+1, i%2};
}

Svc::RateGroupDriver impl("RateGroupDriver");
impl.configure(dividersSet);
Expand Down

0 comments on commit 05ff444

Please sign in to comment.