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

Function TestParseAll

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

Source from the content-addressed store, hash-verified

643}
644
645func TestParseAll(t *testing.T) {
646 ResetForTesting(func() { t.Error("bad parse") })
647 testParseAll(GetCommandLine(), t)
648}
649
650func TestIgnoreUnknownFlags(t *testing.T) {
651 ResetForTesting(func() { t.Error("bad parse") })

Callers

nothing calls this directly

Calls 4

ResetForTestingFunction · 0.85
testParseAllFunction · 0.85
GetCommandLineFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected