TestSpec_PublicAPI_GetAllCodemods validates that GetAllCodemods returns at least one codemod. Spec: "Returns all available codemods"
(t *testing.T)
| 252 | // TestSpec_PublicAPI_GetAllCodemods validates that GetAllCodemods returns at least one codemod. |
| 253 | // Spec: "Returns all available codemods" |
| 254 | func TestSpec_PublicAPI_GetAllCodemods(t *testing.T) { |
| 255 | codemods := cli.GetAllCodemods() |
| 256 | require.NotEmpty(t, codemods, "GetAllCodemods should return at least one codemod") |
| 257 | for _, c := range codemods { |
| 258 | assert.NotEmpty(t, c.ID, "each Codemod should have a non-empty ID") |
| 259 | assert.NotEmpty(t, c.Name, "each Codemod should have a non-empty Name") |
| 260 | assert.NotEmpty(t, c.Description, "each Codemod should have a non-empty Description") |
| 261 | assert.NotNil(t, c.Apply, "each Codemod should have a non-nil Apply function") |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | // TestSpec_PublicAPI_ResolveArtifactFilter validates that ResolveArtifactFilter expands aliases. |
| 266 | // Spec: "Expands artifact set aliases to concrete artifact names" |
nothing calls this directly
no test coverage detected