Remove references from UT paramSet functions
Author: kubiak-jplCreated Sep 16, 2026Updated Sep 17, 2026
| F´ Version | 4.2.0 |
| Affected Component | UTs |
Feature Description
A paramSet method in a test class looks like this
//! Set parameter PngMallocBufferSize
void paramSet_PngMallocBufferSize(
const I32& val, //!< The parameter value
Fw::ParamValid valid //!< The parameter valid flag
); The val type here needs a reference, which means I need to do
I32 pngMallocSize = 42;
paramSet_PngMallocBufferSize(pngMallocSize, Fw::ParamValid::VALID);Instead of
paramSet_PngMallocBufferSize(42, Fw::ParamValid::VALID);Rationale
I don't think the references are necesary here and they make code more verbose than it otherwise could be
Source: nasa/fprime