mirror of
https://github.com/spf13/cobra
synced 2025-05-06 13:27:26 +00:00
go fmt
This commit is contained in:
parent
4c5491dbc9
commit
4d1820be43
1 changed files with 2 additions and 2 deletions
|
@ -385,7 +385,7 @@ func TestMarkZshCompPositionalArgumentCustom(t *testing.T) {
|
||||||
c.ZshCompletionFunction = `
|
c.ZshCompletionFunction = `
|
||||||
function __custom_function {
|
function __custom_function {
|
||||||
_values 'test' a b c
|
_values 'test' a b c
|
||||||
}`
|
}`
|
||||||
c.MarkZshCompPositionalArgumentCustom(1, "__custom_function")
|
c.MarkZshCompPositionalArgumentCustom(1, "__custom_function")
|
||||||
|
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
|
@ -399,7 +399,7 @@ function __custom_function {
|
||||||
if !strings.Contains(output, "'1: :__custom_function'") {
|
if !strings.Contains(output, "'1: :__custom_function'") {
|
||||||
t.Error("should contain custom function argument")
|
t.Error("should contain custom function argument")
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.Contains(output, "function __custom_function {") {
|
if !strings.Contains(output, "function __custom_function {") {
|
||||||
t.Error("should contain custom function")
|
t.Error("should contain custom function")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue