diff options
author | Jakob Unterwurzacher | 2021-08-10 09:33:19 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2021-08-10 09:33:19 +0200 |
commit | 8c9a1c1121581a0d2a7e99d4ddd0fc22d8be20ed (patch) | |
tree | c5f09d887fe84c896ea2d3b23852c93595f4244c /cli_args_test.go | |
parent | c3c9513e6504276698ed1f50a259d4333476acf8 (diff) |
main: push TestPrefixOArgs testcase struct into TestPrefixOArgs
No need to have it declared globally.
Diffstat (limited to 'cli_args_test.go')
-rw-r--r-- | cli_args_test.go | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/cli_args_test.go b/cli_args_test.go index 8e5ae3d..eee3659 100644 --- a/cli_args_test.go +++ b/cli_args_test.go @@ -5,18 +5,16 @@ import ( "testing" ) -type testcase struct { - // i is the input - i []string - // o is the expected output - o []string - // Do we expect an error? - e bool -} - // TestPrefixOArgs checks that the "-o x,y,z" parsing works correctly. func TestPrefixOArgs(t *testing.T) { - testcases := []testcase{ + testcases := []struct { + // i is the input + i []string + // o is the expected output + o []string + // Do we expect an error? + e bool + }{ { i: nil, o: nil, |