-
Notifications
You must be signed in to change notification settings - Fork 2
Adds basic flag parser test #480
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
Conversation
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.
Pull Request Overview
Adds a basic unit test to verify that CLI flags are parsed into nested option structs by the run.FlagParser.
- Introduces run/flagparser_test.go with a smoke test for iterations, duration, and a nested custom flag.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
cowanwalls
left a comment
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.
I have questions about this but don't want to block. Setting review as comment for now.
|
Sorry @cowanwalls , you were a bit faster than me fixing the cleanup. 😅 |
Description
Adds a basic test for the flag parser used by the cli runner. The test is a leftover of some debug work, but it might be good to keep it to have some more coverage.
Changes