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

Function TestGetAllCodemods_InExpectedOrder

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

Source from the content-addressed store, hash-verified

149}
150
151func TestGetAllCodemods_InExpectedOrder(t *testing.T) {
152 codemods := GetAllCodemods()
153
154 // Verify codemods are returned in the expected order
155 // This is important for consistent behavior
156 expectedOrder := expectedCodemodOrder()
157 require.Len(t, codemods, len(expectedOrder), "Should have expected number of codemods")
158
159 for i, expectedID := range expectedOrder {
160 assert.Equal(t, expectedID, codemods[i].ID, "Codemod at position %d should have ID %s", i, expectedID)
161 }
162}
163
164func expectedCodemodOrder() []string {
165 return []string{

Callers

nothing calls this directly

Calls 2

GetAllCodemodsFunction · 0.85
expectedCodemodOrderFunction · 0.85

Tested by

no test coverage detected