fprime
fprime copied to clipboard
Minor refactoring for LoggerRules.cpp
Originating Project/Creator | @Anirban166 |
Affected Component | Unit tests for Fw::Logger |
Affected Architectures(s) | |
Related Issue(s) | -/- |
Has Unit Tests (y/n) | |
Builds Without Errors (y/n) | y |
Unit Tests Pass (y/n) | y |
Documentation Included (y/n) | n |
Change Description
Avoiding a bit of code duplication/repetition.
Rationale
To reduce code bloating!
@LeStarch were the argument-count-representing numbers for the print statements in lines 167, 171, 175, and 179 intentionally made 'Six' for the class/struct LogBad
? (wondering if they're typos from copy-paste or a charactertistic that distinguishes the LogBad
rule from LogGood
, apart from the fact that the former only passes in a nullptr
to the check
method for the FakeLogger object)
Copy and paste error.