This will allow us to parse CLI args while under test without
erroring on other args the test framework may be adding.
Details
Details
- Reviewers
deadalnix Fabien - Group Reviewers
Restricted Project - Commits
- rSTAGING65f363942f17: Split out key-value parsing in ArgsManager into its own function
rABC65f363942f17: Split out key-value parsing in ArgsManager into its own function
make check
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- parse-key-value
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 8196 Build 14418: Default Diff Build & Tests Build 14417: arc lint + arc unit
Event Timeline
Comment Actions
Considering there are still many backports to do in there, I don't think this is very wise to go there.
Comment Actions
I'm aware of that. I checked Core's latest and this part of the code has remained the same so far. I only see one trivial backport that is missing between the lines that were pulled out.
All in all, I think taking ownership on this small piece is worth what we're getting out of it.
Comment Actions
- Added some basic unit tests
- int -> size_t
- Funny how forcing yourself to write some tests reveals subtle design flaws. Moved ParseKeyValue() out of ArgsManager because it doesn't actually belong in that class. I still kept the implementations close to make backporting easier.