mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
parse_test: test unwanted stdin
This commit is contained in:
parent
7157574619
commit
4e0ca860e9
@ -268,4 +268,7 @@ func TestArgumentParsing(t *testing.T) {
|
||||
fstdin = fileToSimulateStdin(t, "stdin1")
|
||||
test([]string{"stdinenablednotvariadic2args", "value1"}, fstdin, []string{"value1", "stdin1"})
|
||||
test([]string{"stdinenablednotvariadic2args", "value1", "value2"}, fstdin, []string{"value1", "value2"})
|
||||
|
||||
fstdin = fileToSimulateStdin(t, "stdin1")
|
||||
test([]string{"noarg"}, fstdin, []string{})
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user