From 888a62e198c679816389bc0c836238d9c787121f Mon Sep 17 00:00:00 2001 From: Simone Morettini Date: Mon, 8 Jan 2024 13:18:44 +0000 Subject: [PATCH 1/3] Generalize UT --- Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp b/Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp index 6c80fd68e1..6584a000b7 100644 --- a/Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp +++ b/Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp @@ -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(int i=0; i Date: Mon, 8 Jan 2024 13:59:28 -0800 Subject: [PATCH 2/3] Swtiching `int` to `FwIndexType` --- Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp b/Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp index 6584a000b7..f9df73ed28 100644 --- a/Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp +++ b/Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp @@ -32,7 +32,7 @@ void connectPorts(Svc::RateGroupDriver& impl, Svc::RateGroupDriverImplTester& te TEST(RateGroupDriverTest,NominalSchedule) { Svc::RateGroupDriver::DividerSet dividersSet{}; - for(int i=0; i Date: Thu, 11 Jan 2024 07:59:26 +0000 Subject: [PATCH 3/3] Added cast to remove warnings --- Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp b/Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp index f9df73ed28..9d29206d15 100644 --- a/Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp +++ b/Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp @@ -32,7 +32,7 @@ void connectPorts(Svc::RateGroupDriver& impl, Svc::RateGroupDriverImplTester& te TEST(RateGroupDriverTest,NominalSchedule) { Svc::RateGroupDriver::DividerSet dividersSet{}; - for(FwIndexType i=0; i(Svc::RateGroupDriver::DIVIDER_SIZE); i++) { dividersSet.dividers[i] = {i+1, i%2}; }