1
0
Fork 0
mirror of https://github.com/spf13/cobra synced 2025-04-01 20:39:12 +00:00
This commit is contained in:
Fraser Waters 2025-02-21 12:18:37 +00:00
parent 3473156b22
commit d6a2746d5b

View file

@ -2926,6 +2926,7 @@ func TestHelpFuncExecuted(t *testing.T) {
helpText := "Long description"
// Create a context that will be unique, not just the background context
//nolint:golint,staticcheck // We can safely use a basic type as key in tests.
executionCtx := context.WithValue(context.Background(), "testKey", "123")
child := &Command{Use: "child", Run: emptyRun}