From fec491fb1207fce686a30a6bcc002156cd8294e7 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 21 Oct 2015 14:15:42 -0600 Subject: [PATCH] Removed another test that is Windows-specific We're not trying to test the shlex library; just our wrapper function --- middleware/commands_test.go | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/middleware/commands_test.go b/middleware/commands_test.go index 770bdd7df..5274a9e33 100644 --- a/middleware/commands_test.go +++ b/middleware/commands_test.go @@ -118,28 +118,21 @@ func TestSplitCommandAndArgs(t *testing.T) { expectedArgs: []string{`arg1 arg1`}, expectedErrContent: ``, }, - // Test case 5 - command with comments - { - input: `command arg1 #comment1 comment2`, - expectedCommand: `command`, - expectedArgs: []string{`arg1`}, - expectedErrContent: "", - }, - // Test case 6 - command with multiple spaces and tab character + // Test case 5 - command with multiple spaces and tab character { input: "command arg1 arg2\targ3", expectedCommand: `command`, expectedArgs: []string{`arg1`, `arg2`, "arg3"}, expectedErrContent: "", }, - // Test case 7 - command with unclosed quotes + // Test case 6 - command with unclosed quotes { input: `command "arg1 arg2`, expectedCommand: "", expectedArgs: nil, expectedErrContent: parseErrorContent, }, - // Test case 8 - command with unclosed quotes + // Test case 7 - command with unclosed quotes { input: `command 'arg1 arg2"`, expectedCommand: "",