| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
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
|
Sorry, something went wrong.
|
Todo implement validator, but i have no time and daemon error would return error. |
Sorry, something went wrong.
Signed-off-by: Kanstantsin Shautsou <kanstantsin.sha@gmail.com>
| * @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.
The `validModes' map should be declared as static member and not declared inline.
Sorry, something went wrong.
There was a problem hiding this comment.
what do you mean under not declared inline.?
Sorry, something went wrong.
There was a problem hiding this comment.
I mean it should be declared at the class level not in the method itself.
Sorry, something went wrong.
There was a problem hiding this comment.
It must be mutable, it changes true to false to exclude double letters.
Sorry, something went wrong.
|
@marcuslinke updated, feel free to squash merge (dropdown in merge button) if it LGTY. |
Sorry, something went wrong.
* Implement Device parser Signed-off-by: Kanstantsin Shautsou <kanstantsin.sha@gmail.com> * Add more tests, fix.
| Back | FazBrowse Home | New Git URL |
fixes #592
This change is