Index: unittests/tst_messaging.cpp =================================================================== diff -u -ra6abc05918a15924460d2b9358365b3eeedf1d1c -rc8b2c06141831ba2908323138d94dec0ccc0d402 --- unittests/tst_messaging.cpp (.../tst_messaging.cpp) (revision a6abc05918a15924460d2b9358365b3eeedf1d1c) +++ unittests/tst_messaging.cpp (.../tst_messaging.cpp) (revision c8b2c06141831ba2908323138d94dec0ccc0d402) @@ -766,6 +766,15 @@ QVERIFY(payload.isEmpty()); } +void tst_messaging::tst_MessageInterpreter_interpretMessage_AdjustPressuresReq() +{ + Can::MessageInterpreter iMsg; + QByteArray payload; + // if the payload is empty the len is not valid and should return false and empty payload + QVERIFY( ! iMsg.interpretMessage(Gui::GuiActionType::ID_AdjustPressuresLimitsReq, {}, payload)); + QVERIFY(payload.isEmpty()); +} + /*! * \brief tst_messaging::tst_MessageInterpreter_interpretMessage_CANBusFaultCount * \details Tests MessageInterpreter interpretMessage to handle ID_CANBusFaultCount message type