summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-24 19:36:44 +0200
committerJakob Unterwurzacher2016-10-24 19:36:44 +0200
commitf41d2e067679c4c6a8b0b5dcb52a113918806e48 (patch)
tree0fb1206a17600c793912a5719596349b405d9d82
parent8bed6e454ecac892347a0f0ada13057185bd8f95 (diff)
Run cli_args_test.go through "gofmt -s"
-rw-r--r--cli_args_test.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/cli_args_test.go b/cli_args_test.go
index e1ed435..8846491 100644
--- a/cli_args_test.go
+++ b/cli_args_test.go
@@ -14,40 +14,40 @@ type testcase struct {
func TestPrefixOArgs(t *testing.T) {
testcases := []testcase{
- testcase{
+ {
i: nil,
o: nil,
},
- testcase{
+ {
i: []string{"gocryptfs"},
o: []string{"gocryptfs"},
},
- testcase{
+ {
i: []string{"gocryptfs", "-v"},
o: []string{"gocryptfs", "-v"},
},
- testcase{
+ {
i: []string{"gocryptfs", "foo", "bar", "-v"},
o: []string{"gocryptfs", "foo", "bar", "-v"},
},
- testcase{
+ {
i: []string{"gocryptfs", "foo", "bar", "-o", "a"},
o: []string{"gocryptfs", "-a", "foo", "bar"},
},
- testcase{
+ {
i: []string{"gocryptfs", "foo", "bar", "-o", "a,b,xxxxx"},
o: []string{"gocryptfs", "-a", "-b", "-xxxxx", "foo", "bar"},
},
- testcase{
+ {
i: []string{"gocryptfs", "foo", "bar", "-d", "-o=a,b,xxxxx"},
o: []string{"gocryptfs", "-a", "-b", "-xxxxx", "foo", "bar", "-d"},
},
- testcase{
+ {
i: []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
- testcase{
+ {
i: []string{"gocryptfs", "-o", "rw", "--config", "fff", "ccc", "mmm"},
o: []string{"gocryptfs", "-rw", "--config", "fff", "ccc", "mmm"},
},