-
Notifications
You must be signed in to change notification settings - Fork 3
L1 Test Generation with Copilot: HdmiCecSource #251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
… for true/false enabled param
…ecific prompt amendment
…ect_call for sendto
Removed duplicate test cases and updated existing tests for HDMI CEC source functionality.
Added new tests for HDMI CEC source functionalities including getEnabled, setEnabled, getOSDName, setOSDName, and various key press events. Removed duplicate tests and updated existing tests for clarity.
Comment out the test for invalid logical address in sendKeyPressEvent.
Comment out the test for missing parameter in sendKeyPressEvent.
Plugin::HdmiCecSourceProcessor proc(Connection::getInstance()); | ||
proc.process(reportPowerStatus, header); | ||
proc.process(reportPowerStatus, header); | ||
|
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.
Coverity Issue - Variable copied when it could be moved
"powerStatus" is passed-by-value as parameter to "PowerStatus::PowerStatus(PowerStatus const &) /implicit =default/", when it could be moved instead.
Low Impact, CWE-none
COPY_INSTEAD_OF_MOVE
How to fix
Use "std::move(""powerStatus"")" instead of "powerStatus".
Plugin::HdmiCecSourceProcessor proc(Connection::getInstance()); | ||
proc.process(reportPowerStatus, header); | ||
proc.process(reportPowerStatus, header); | ||
|
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.
Coverity Issue - Uninitialized pointer read
Using uninitialized value "powerStatus.impl" when calling "PowerStatus".
High Impact, CWE-457
UNINIT
No description provided.