MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / rootFlagError

Function rootFlagError

cmd/root_test.go:242–250  ·  view source on GitHub ↗
(t *testing.T, arg string)

Source from the content-addressed store, hash-verified

240}
241
242func 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

Callers 1

TestIsUserErrorFunction · 0.85

Calls 1

pflagErrorFunction · 0.85

Tested by

no test coverage detected