Skip to content
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

feat: Add more unit tests for default optional template parameter of VirtualConfig<> #39

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

andre-nguyen
Copy link
Contributor

@nathanhhughes Follow up to #37

I think I stumbled on the same problem as you. I wanted an optional VirtualConfig<Foo> to pass parsing and validation when the config wasn't specified. Its a way for me to disable a certain feature that could have different settings depending on how it should behave.

Was tinkering with a unit test only to realize you had already fixed the issue and I was on an older commit. Thought these could still be useful.

@andre-nguyen andre-nguyen changed the title feat: Add unit tests for default optional template parameter of VirtualConfig<> feat: Add more unit tests for default optional template parameter of VirtualConfig<> Jan 13, 2025
@Schmluk Schmluk self-requested a review January 13, 2025 14:54
Copy link
Collaborator

@Schmluk Schmluk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks a lot @andre-nguyen for adding these utests, feel free to squash and merge.

@andre-nguyen
Copy link
Contributor Author

feel free to squash and merge.

Am I supposed to have merge permissions? 😅

@nathanhhughes
Copy link
Collaborator

@andre-nguyen Thanks for adding the tests / glad #37 helped with your issue!

Am I supposed to have merge permissions? 😅

Ideally yes (we tend to follow a "whoever submits the PR gets to merge it once approved" approach) but clearly haven't looked too hard at the permissions for the public repos we have. Hopefully we'll figure it out for your next contribution!

@nathanhhughes nathanhhughes merged commit 09f2d73 into MIT-SPARK:main Jan 13, 2025
2 checks passed
@andre-nguyen andre-nguyen deleted the feat/unit_test_optional branch January 13, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants