Commit 5026c83
committed
fix: TestResetFlagToDefault uses NewTestKit per cmd test harness convention
CodeRabbit follow-up on PR #3022: this test builds its own local
pflag.FlagSet rather than touching RootCmd, but cmd package tests must
still call NewTestKit(t) per repo convention, for consistency and to guard
against future edits that do touch global state.1 parent e02f3a6 commit 5026c83
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
| |||
0 commit comments