Documentation
¶
Overview ¶
Package cmdtest provides shared helpers for verb-level command tests. Lives under pkg/cmd/internal/ so any package below pkg/cmd/ can import it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory returns a *cmdutil.Factory wired with in-memory I/O buffers and stub Config/RestClient functions suitable for verb-level Cobra tests. Config returns the supplied cluster + namespace; RestClient returns nil (callers either inject runF to bypass the network or replace RestClient).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.