Skip to content
Myr

Rename Powershell completion tests (#1803)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

The name of the powershell completion test file did not match the actual powershell file.

authored by Marc Khouzam · committed by GitHub · parent d689184 · Browse files · 2 files+19 added−19 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com>

Diff stats

2 files+19 added−19 removed

  • other:+19 added−19 removed

2 files+19 added−19 removed

deleted:power_completions_test.go-19 removed
1package cobra23import (4 "bytes"5 "fmt"6 "testing"7)89func TestPwshCompletionNoActiveHelp(t *testing.T) {10 c := &Command{Use: "c", Run: emptyRun}1112 buf := new(bytes.Buffer)13 assertNoErr(t, c.GenPowerShellCompletion(buf))14 output := buf.String()1516 // check that active help is being disabled17 activeHelpVar := activeHelpEnvVar(c.Name())18 check(t, output, fmt.Sprintf("%s=0", activeHelpVar))19}
added:powershell_completions_test.go+19 added
1package cobra23import (4 "bytes"5 "fmt"6 "testing"7)89func TestPwshCompletionNoActiveHelp(t *testing.T) {10 c := &Command{Use: "c", Run: emptyRun}1112 buf := new(bytes.Buffer)13 assertNoErr(t, c.GenPowerShellCompletion(buf))14 output := buf.String()1516 // check that active help is being disabled17 activeHelpVar := activeHelpEnvVar(c.Name())18 check(t, output, fmt.Sprintf("%s=0", activeHelpVar))19}