(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestGetAllCodemods_ContainsExpectedCodemods(t *testing.T) { |
| 60 | codemods := GetAllCodemods() |
| 61 | |
| 62 | // Build a map of codemod IDs |
| 63 | codemodIDs := make(map[string]bool) |
| 64 | for _, codemod := range codemods { |
| 65 | codemodIDs[codemod.ID] = true |
| 66 | } |
| 67 | |
| 68 | // Verify all expected codemods are present |
| 69 | expectedIDs := []string{ |
| 70 | "timeout-minutes-migration", |
| 71 | "network-firewall-migration", |
| 72 | "command-to-slash-command-migration", |
| 73 | "workflow-dispatch-required-false-with-slash-command", |
| 74 | "mcp-scripts-mode-removal", |
| 75 | "upload-assets-to-upload-asset-migration", |
| 76 | "write-permissions-to-read-migration", |
| 77 | "permissions-read-to-read-all", |
| 78 | "agent-task-to-agent-session-migration", |
| 79 | "sandbox-false-to-agent-false", |
| 80 | "schedule-at-to-around-migration", |
| 81 | "delete-schema-file", |
| 82 | "grep-tool-removal", |
| 83 | "mcp-network-to-top-level-migration", |
| 84 | "discussion-trigger-categories-lowercase", |
| 85 | "safe-output-title-prefix-to-required-title-prefix", |
| 86 | "safe-output-merge-pr-constraints", |
| 87 | "safe-output-add-reviewer-allowlists", |
| 88 | "safe-output-dispatch-repository-key", |
| 89 | "safe-inputs-to-mcp-scripts", |
| 90 | "rate-limit-to-user-rate-limit", |
| 91 | "effective-tokens-to-ai-credits", |
| 92 | "messages-effective-tokens-suffix-to-ai-credits-suffix", |
| 93 | "engine-max-runs-to-top-level", |
| 94 | "max-runs-to-max-turns", |
| 95 | "engine-max-turns-to-top-level", |
| 96 | "steps-run-secrets-to-env", |
| 97 | "engine-env-secrets-to-engine-config", |
| 98 | "top-level-env-secrets-guided-error", |
| 99 | "serena-tools-to-shared-import", |
| 100 | "workflow-run-branches-default", |
| 101 | "checkout-persist-credentials-false", |
| 102 | "pull-request-target-checkout-false", |
| 103 | "dependabot-toolset-permissions", |
| 104 | "features-copilot-requests-to-permissions", |
| 105 | "features-byok-copilot-removal", |
| 106 | "features-inline-agents-removal", |
| 107 | "mount-as-clis-to-cli-proxy", |
| 108 | "bash-single-quoted-args-rewrite", |
| 109 | "infer-to-disable-model-invocation", |
| 110 | "mentions-allow-team-members-to-allowed-collaborators", |
| 111 | "engine-copilot-sdk-driver-to-driver", |
| 112 | } |
| 113 | |
| 114 | for _, expectedID := range expectedIDs { |
| 115 | assert.True(t, codemodIDs[expectedID], "Expected codemod with ID %s to be present", expectedID) |
| 116 | } |
nothing calls this directly
no test coverage detected