-
Notifications
You must be signed in to change notification settings - Fork 2
added switches package #26
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
d742054
to
b9d9ead
Compare
b9d9ead
to
829ba10
Compare
cc @adracus I also tested it on |
cmdutils/switches/switches_test.go
Outdated
|
||
By("updating settings with empty value") | ||
Expect(s.Set("")).NotTo(HaveOccurred()) | ||
Expect(s.settings).To(Equal(defaults)) |
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.
We shouldn't access private values in tests.
@adracus Ready for re-review. |
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.
Looks good, just the naming change of DefaultValue
and we can merge 🚀
Fixes https://github.com/onmetal/controller-utils/issues/20