(t *testing.T)
| 517 | } |
| 518 | |
| 519 | func TestNewFixCommand_HasDisableCodemodFlag(t *testing.T) { |
| 520 | cmd := NewFixCommand() |
| 521 | require.NotNil(t, cmd) |
| 522 | |
| 523 | flag := cmd.Flags().Lookup("disable-codemod") |
| 524 | require.NotNil(t, flag, "fix command should register --disable-codemod") |
| 525 | assert.Equal(t, "stringSlice", flag.Value.Type()) |
| 526 | assert.Contains(t, flag.Usage, "Disable specific codemod IDs") |
| 527 | } |
| 528 | |
| 529 | func TestRunFix_DisabledCodemodSkipsMatchingFix(t *testing.T) { |
| 530 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected