aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"},
},