Closed Swift2568 closed 2 years ago
Merging #2100 (1d50cc2) into develop (7324ff6) will increase coverage by
0.12%
. The diff coverage is95.40%
.
@@ Coverage Diff @@
## develop #2100 +/- ##
===========================================
+ Coverage 85.33% 85.46% +0.12%
===========================================
Files 447 448 +1
Lines 22646 22831 +185
===========================================
+ Hits 19326 19512 +186
+ Misses 3320 3319 -1
Fixes #17
Risk
This PR makes no API changes.
Testing Plan
Unit Tests
Core Tests
Core version / branch / commit hash / module tested against: sdl_core 8.1.0, sdl_core 7.1.0 HMI name / version / branch / commit hash / module tested against: generic_hmi 0.12.0
Summary
Converted SDLProtocol sdl_processMessages to use a state machine to process incoming message bytes.
Changelog
Enhancements
SDLProtocolRecievedMessageProcessor.m
andSDLProtocolRecievedMessageProcessor.h
for the state machine.stateMachineManager
manages the state machine.sdl_processMessagesStateMachine
is the state machine for processing the bytes. It is loosely based on the java suite implementation, with significantly simplified logic.sdl_processMessages
to callstateMachineManager
to process the bytesCLA