MCPcopy
hub / github.com/spf13/pflag / TestNoArgument

Function TestNoArgument

flag_test.go:103–107  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

101}
102
103func TestNoArgument(t *testing.T) {
104 if GetCommandLine().Parse([]string{}) != nil {
105 t.Error("parse failed for empty argument list")
106 }
107}
108
109func TestUsage(t *testing.T) {
110 called := false

Callers

nothing calls this directly

Calls 3

GetCommandLineFunction · 0.85
ParseMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected