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

Function TestGetAllCodemods_NoduplicateIDs

pkg/cli/fix_codemods_test.go:119–128  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

117}
118
119func TestGetAllCodemods_NoduplicateIDs(t *testing.T) {
120 codemods := GetAllCodemods()
121
122 // Check for duplicate IDs
123 seenIDs := make(map[string]bool)
124 for _, codemod := range codemods {
125 assert.False(t, seenIDs[codemod.ID], "Duplicate codemod ID found: %s", codemod.ID)
126 seenIDs[codemod.ID] = true
127 }
128}
129
130func TestGetCodemods_DisablesRequestedCodemods(t *testing.T) {
131 codemods, err := GetCodemods([]string{"timeout-minutes-migration", "network-firewall-migration"})

Callers

nothing calls this directly

Calls 1

GetAllCodemodsFunction · 0.85

Tested by

no test coverage detected