-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Implemented Device parser #593
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
Current coverage is 30.29%
@@ master #593 diff @@
==========================================
Files 296 296
Lines 6218 6245 +27
Methods 0 0
Messages 0 0
Branches 547 553 +6
==========================================
+ Hits 1420 1892 +472
+ Misses 4706 4353 -353
+ Partials 92 0 -92
|
5df54bf to
a3880ed
Compare
|
Todo implement validator, but i have no time and daemon error would return error. |
|
@marcuslinke please review |
Signed-off-by: Kanstantsin Shautsou <[email protected]>
| * @link https://github.com/docker/docker/blob/6b4a46f28266031ce1a1315f17fb69113a06efe1/runconfig/opts/parse.go#L796 | ||
| */ | ||
| private static boolean validDeviceMode(String deviceMode) { | ||
| Map<String, Boolean> validModes = new HashMap<>(3); |
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.
The `validModes' map should be declared as static member and not declared inline.
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.
what do you mean under not declared inline.?
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 mean it should be declared at the class level not in the method itself.
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.
It must be mutable, it changes true to false to exclude double letters.
|
@marcuslinke updated, feel free to squash merge (dropdown in merge button) if it LGTY. |
* Implement Device parser Signed-off-by: Kanstantsin Shautsou <[email protected]> * Add more tests, fix.
fixes #592
This change is