-
-
Notifications
You must be signed in to change notification settings - Fork 15
[Merged by Bors] - Added config::merge::chainable_merge() #397
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.
Did you upload your branch where you use this in the operator?
src/config/merge.rs
Outdated
@@ -391,4 +418,24 @@ mod tests { | |||
BTreeMap::from([("a", Acc(4)), ("b", Acc(2)), ("c", Acc(5))]) | |||
); | |||
} | |||
|
|||
#[test] | |||
fn test_chainable_merge() { |
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.
No need to keep the same test case as both a regular unit test and a doctest
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.
Here is a usecase: https://github.com/stackabletech/hdfs-operator/pull/164/files#diff-b10253ea28ef51076309f375e97cd5e2795500b0e07c5326c413055bffcb4a85R253
I will remove the test
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.
LGTM.
bors merge |
Pull request successfully merged into main. Build succeeded: |
No description provided.