(t *testing.T)
| 648 | } |
| 649 | |
| 650 | func TestIgnoreUnknownFlags(t *testing.T) { |
| 651 | ResetForTesting(func() { t.Error("bad parse") }) |
| 652 | testParseWithUnknownFlags(GetCommandLine(), t, func(f *FlagSet) { f.ParseErrorsAllowlist.UnknownFlags = true }) |
| 653 | } |
| 654 | |
| 655 | func TestIgnoreUnknownFlagsBackwardsCompat(t *testing.T) { |
| 656 | ResetForTesting(func() { t.Error("bad parse") }) |
nothing calls this directly
no test coverage detected