(t *testing.T)
| 27 | } |
| 28 | |
| 29 | func TestStubCommandLineArgs_argReset(t *testing.T) { |
| 30 | StubCommandLineArgs("one", "two") |
| 31 | assert.Equal(t, 2, flag.NArg()) |
| 32 | assert.Equal(t, []string{"one", "two"}, flag.Args()) |
| 33 | StubCommandLineArgs() |
| 34 | assert.Equal(t, 0, flag.NArg()) |
| 35 | assert.Equal(t, []string{}, flag.Args()) |
| 36 | } |
nothing calls this directly
no test coverage detected