Every switch shall have a matching otherwise section.
Priority
Mandatory
Severity level
4
Description
Every switch shall have a matching otherwise section, even if it does not contain executable code.
Rationale
By including an otherwise section, no execution paths are overlooked. Additionally, code coverage can be accurately reported because without otherwise, it is unclear whether it happens that none of the cases occur.