MCPcopy Create free account
hub / github.com/Code-Hex/pget / TestShowhelp

Function TestShowhelp

parse_test.go:66–84  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

64}
65
66func 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
86func TestShowisupdate(t *testing.T) {
87 args := []string{

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
parseOptionsMethod · 0.80

Tested by

no test coverage detected