(t *testing.T)
| 149 | } |
| 150 | |
| 151 | func 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 | |
| 164 | func expectedCodemodOrder() []string { |
| 165 | return []string{ |
nothing calls this directly
no test coverage detected