(t *testing.T, arg string)
| 240 | } |
| 241 | |
| 242 | func rootFlagError(t *testing.T, arg string) error { |
| 243 | t.Helper() |
| 244 | |
| 245 | err := rootCmd.FlagErrorFunc()(nil, pflagError(t, arg)) |
| 246 | if !errors.Is(err, ErrUsage) { |
| 247 | t.Fatalf("root flag error should wrap ErrUsage, got %v", err) |
| 248 | } |
| 249 | return err |
| 250 | } |
| 251 | |
| 252 | // ── releaseTag ────────────────────────────────────────────────────────────── |
| 253 |
no test coverage detected