(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func TestShowhelp(t *testing.T) { |
| 67 | args := []string{ |
| 68 | "pget", |
| 69 | "-h", |
| 70 | } |
| 71 | |
| 72 | p := New() |
| 73 | _, err := p.parseOptions(args, version) |
| 74 | assert.NotNil(t, err) |
| 75 | |
| 76 | args = []string{ |
| 77 | "pget", |
| 78 | "--help", |
| 79 | } |
| 80 | |
| 81 | p = New() |
| 82 | _, err = p.parseOptions(args, version) |
| 83 | assert.NotNil(t, err) |
| 84 | } |
| 85 | |
| 86 | func TestShowisupdate(t *testing.T) { |
| 87 | args := []string{ |
nothing calls this directly
no test coverage detected