Run cli_args_test.go through "gofmt -s"

This commit is contained in:
Jakob Unterwurzacher 2016-10-24 19:36:44 +02:00
parent 8bed6e454e
commit f41d2e0676
1 changed files with 9 additions and 9 deletions

View File

@ -14,40 +14,40 @@ type testcase struct {
func TestPrefixOArgs(t *testing.T) { func TestPrefixOArgs(t *testing.T) {
testcases := []testcase{ testcases := []testcase{
testcase{ {
i: nil, i: nil,
o: nil, o: nil,
}, },
testcase{ {
i: []string{"gocryptfs"}, i: []string{"gocryptfs"},
o: []string{"gocryptfs"}, o: []string{"gocryptfs"},
}, },
testcase{ {
i: []string{"gocryptfs", "-v"}, i: []string{"gocryptfs", "-v"},
o: []string{"gocryptfs", "-v"}, o: []string{"gocryptfs", "-v"},
}, },
testcase{ {
i: []string{"gocryptfs", "foo", "bar", "-v"}, i: []string{"gocryptfs", "foo", "bar", "-v"},
o: []string{"gocryptfs", "foo", "bar", "-v"}, o: []string{"gocryptfs", "foo", "bar", "-v"},
}, },
testcase{ {
i: []string{"gocryptfs", "foo", "bar", "-o", "a"}, i: []string{"gocryptfs", "foo", "bar", "-o", "a"},
o: []string{"gocryptfs", "-a", "foo", "bar"}, o: []string{"gocryptfs", "-a", "foo", "bar"},
}, },
testcase{ {
i: []string{"gocryptfs", "foo", "bar", "-o", "a,b,xxxxx"}, i: []string{"gocryptfs", "foo", "bar", "-o", "a,b,xxxxx"},
o: []string{"gocryptfs", "-a", "-b", "-xxxxx", "foo", "bar"}, o: []string{"gocryptfs", "-a", "-b", "-xxxxx", "foo", "bar"},
}, },
testcase{ {
i: []string{"gocryptfs", "foo", "bar", "-d", "-o=a,b,xxxxx"}, i: []string{"gocryptfs", "foo", "bar", "-d", "-o=a,b,xxxxx"},
o: []string{"gocryptfs", "-a", "-b", "-xxxxx", "foo", "bar", "-d"}, o: []string{"gocryptfs", "-a", "-b", "-xxxxx", "foo", "bar", "-d"},
}, },
testcase{ {
i: []string{"gocryptfs", "foo", "bar", "-oooo", "a,b,xxxxx"}, i: []string{"gocryptfs", "foo", "bar", "-oooo", "a,b,xxxxx"},
o: []string{"gocryptfs", "foo", "bar", "-oooo", "a,b,xxxxx"}, o: []string{"gocryptfs", "foo", "bar", "-oooo", "a,b,xxxxx"},
}, },
// https://github.com/mhogomchungu/sirikali/blob/a36d91d3e39f0c1eb9a79680ed6c28ddb6568fa8/src/siritask.cpp#L192 // https://github.com/mhogomchungu/sirikali/blob/a36d91d3e39f0c1eb9a79680ed6c28ddb6568fa8/src/siritask.cpp#L192
testcase{ {
i: []string{"gocryptfs", "-o", "rw", "--config", "fff", "ccc", "mmm"}, i: []string{"gocryptfs", "-o", "rw", "--config", "fff", "ccc", "mmm"},
o: []string{"gocryptfs", "-rw", "--config", "fff", "ccc", "mmm"}, o: []string{"gocryptfs", "-rw", "--config", "fff", "ccc", "mmm"},
}, },