Skip to content

test coverage for pkg/namespaces #28952

Description

@ROKUMATE

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions