Area: pkg/namespaces
Gap: UsernsMode and NetworkMode (the --userns / --network mode
string types) expose ~25 predicate/parser methods (IsHost, IsKeepID,
IsAuto, IsContainer/Container, IsNS/NS, GetKeepIDOptions, IsBridge,
IsPasta, IsPod, IsUserDefined/UserDefined, Valid, …) with zero test
coverage, despite parsing user-supplied mode:opts strings.
Proposal: add table-driven unit tests pinning the parsing/predicate behavior
for both types, including GetKeepIDOptions option parsing + error paths.
Area:
pkg/namespacesGap:
UsernsModeandNetworkMode(the--userns/--networkmodestring types) expose ~25 predicate/parser methods (
IsHost,IsKeepID,IsAuto,IsContainer/Container,IsNS/NS,GetKeepIDOptions,IsBridge,IsPasta,IsPod,IsUserDefined/UserDefined,Valid, …) with zero testcoverage, despite parsing user-supplied
mode:optsstrings.Proposal: add table-driven unit tests pinning the parsing/predicate behavior
for both types, including
GetKeepIDOptionsoption parsing + error paths.