mirror of
https://github.com/spf13/cobra
synced 2025-04-01 20:39:12 +00:00
lint
This commit is contained in:
parent
3473156b22
commit
d6a2746d5b
1 changed files with 1 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue