Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
ff9cb9ec
Commit
ff9cb9ec
authored
May 17, 2015
by
Christian Couder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parse_test: test multiline stdin
License: MIT Signed-off-by:
Christian Couder
<
chriscool@tuxfamily.org
>
parent
88be96bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
commands/cli/parse_test.go
commands/cli/parse_test.go
+6
-0
No files found.
commands/cli/parse_test.go
View file @
ff9cb9ec
...
...
@@ -224,4 +224,10 @@ func TestArgumentParsing(t *testing.T) {
test
([]
string
{
"stdinenabled"
},
fstdin
,
[]
string
{
"stdin1"
})
test
([]
string
{
"stdinenabled"
,
"value1"
},
fstdin
,
[]
string
{
"stdin1"
,
"value1"
})
test
([]
string
{
"stdinenabled"
,
"value1"
,
"value2"
},
fstdin
,
[]
string
{
"stdin1"
,
"value1"
,
"value2"
})
fstdin
=
fileToSimulateStdin
(
t
,
"stdin1
\n
stdin2"
)
test
([]
string
{
"stdinenabled"
},
fstdin
,
[]
string
{
"stdin1"
,
"stdin2"
})
fstdin
=
fileToSimulateStdin
(
t
,
"stdin1
\n
stdin2
\n
stdin3"
)
test
([]
string
{
"stdinenabled"
},
fstdin
,
[]
string
{
"stdin1"
,
"stdin2"
,
"stdin3"
})
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment