(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestMinimumArgs(t *testing.T) { |
| 14 | tests := []struct { |
| 15 | N int |
| 16 | Args []string |
| 17 | }{ |
| 18 | { |
| 19 | N: 1, |
| 20 | Args: []string{"v1.2.3"}, |
| 21 | }, |
| 22 | { |
| 23 | N: 2, |
| 24 | Args: []string{"v1.2.3", "cli/cli"}, |
| 25 | }, |
| 26 | } |
| 27 | |
| 28 | for _, test := range tests { |
| 29 | if got := MinimumArgs(test.N, "")(nil, test.Args); got != nil { |
| 30 | t.Errorf("Got: %v, Want: (nil)", got) |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func TestMinimumNs_with_error(t *testing.T) { |
| 36 | tests := []struct { |
nothing calls this directly
no test coverage detected