-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix for voice command that contains no string should be removed #1965
Fix for voice command that contains no string should be removed #1965
Conversation
In SDLVoiceCommandUpdateOperation
Codecov Report
@@ Coverage Diff @@
## develop #1965 +/- ##
===========================================
- Coverage 85.95% 85.20% -0.75%
===========================================
Files 441 441
Lines 22586 22603 +17
===========================================
- Hits 19414 19260 -154
- Misses 3172 3343 +171 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments.
SmartDeviceLinkTests/DevAPISpecs/SDLVoiceCommandUpdateOperationSpec.m
Outdated
Show resolved
Hide resolved
+ Comments review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments
SmartDeviceLinkTests/DevAPISpecs/SDLVoiceCommandUpdateOperationSpec.m
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested renaming variables for clarity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made one suggestion to relocate a comment.
Can you also add the smoke tests you performed under Core Tests in the PR description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some suggestions to make the tests a little more readable.
SmartDeviceLinkTests/DevAPISpecs/SDLVoiceCommandUpdateOperationSpec.m
Outdated
Show resolved
Hide resolved
…ins-no-string-should-be-removed # Conflicts: # SmartDeviceLink-iOS.xcodeproj/project.pbxproj # SmartDeviceLink/private/SDLVoiceCommandManager.m # SmartDeviceLinkTests/DevAPISpecs/SDLVoiceCommandManagerSpec.m
Fixes #1964
Risk
This PR makes no API changes.
Testing Plan
Unit Tests
Unit Test added in SDLVoiceCommandUpdateOperationSpec file to check if pendingVoiceCommands handles voice commands with no string
Core Tests
Test applied on the example app:
Modified ProxyManager to set the voiceCommandA initial state.
Case 1: The following voiceCommands defined: voiceCommandA = ["", "Test 1", " ", "Test 2", " "], voiceCommandB = ["Test 3", "Test 4"]
Case 2: The following voiceCommands defined: voiceCommandA = ["", "Test 1", " ", "Test 2", " "]
Case 3: voiceCommandA = nil
Case 4: The following voiceCommands defined: voiceCommandA = ["", " ", "\t"]
Core version / branch / commit hash / module tested against: 7.1.0
HMI name / version / branch / commit hash / module tested against: Manticore
Summary
Update pendingVoiceCommands to prevent from sending a voice command with no string
Changelog
Breaking Changes
Enhancements
Bug Fixes
Tasks Remaining:
N/A
CLA