-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmdline: return parsed object and refactor unit-tests
Instead of constructing a default object and handing in a mutable reference we just return the parsed object directly. By implementing PartialEq on CmdLineOptions we can construct an object that equals the expected parsed CmdLineOptions - which saves quite a few lines of asserts and is arguably more readable. Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
- Loading branch information
Showing
2 changed files
with
61 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters