Qualify Const Member Functions in GroupDataProvider#72065
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Code Review
This pull request improves const-correctness by adding the "const" qualifier to several getter methods within the GroupDataProvider interface, its implementation GroupDataProviderImpl, and the MockGroupDataProvider test class. Specifically, methods such as GetMaxGroupsPerFabric, IsGroupcastEnabled, getMaxMembershipCount, and getMaxMcastAddrCount are now marked as const. I have no feedback to provide.
|
PR #72065: Size comparison from fa18120 to ec3c441 Full report (33 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, psoc6, qpg, realtek, stm32, telink)
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #72065 +/- ##
=======================================
Coverage 54.89% 54.89%
=======================================
Files 1619 1619
Lines 110414 110414
Branches 13493 13493
=======================================
Hits 60609 60609
Misses 49805 49805 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
* make const member functions * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Summary
This PR qualifies some const member functions. This change stems from a request to keep
GetMaxGroupsPerFabric()as a const member function, as this was unintentionally removed as part of #72047. To do this, the functions called withinGetMaxGroupsPerFabric()were made const too.Testing