Skip to content

Commit 3949e46

Browse files
committed
refactor: update comment
1 parent 380bb3f commit 3949e46

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

get/get_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ import (
1616
"sigs.k8s.io/controller-runtime/pkg/client"
1717
)
1818

19-
// NewTestCmd creates a Cmd for testing with the given writer and output format.
20-
// This is a convenience helper that properly initializes the output writer.
19+
// NewTestCmd creates a [Cmd] for testing with the given writer and output format.
20+
// It initializes the format.Writer and calls BeforeApply to ensure the output
21+
// is properly configured.
2122
func NewTestCmd(w io.Writer, outFormat outputFormat, opts ...func(*Cmd)) *Cmd {
2223
cmd := &Cmd{
2324
output: output{

0 commit comments

Comments
 (0)