MCPcopy Create free account
hub / github.com/github/gh-aw / TestNewFixCommand_HasDisableCodemodFlag

Function TestNewFixCommand_HasDisableCodemodFlag

pkg/cli/fix_command_test.go:519–527  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

517}
518
519func 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
529func TestRunFix_DisabledCodemodSkipsMatchingFix(t *testing.T) {
530 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

NewFixCommandFunction · 0.85

Tested by

no test coverage detected