(t *testing.T)
| 27 | } |
| 28 | |
| 29 | func TestNewFieldRemovalCodemod_Metadata(t *testing.T) { |
| 30 | cfg := baseFieldRemovalConfig() |
| 31 | codemod := newFieldRemovalCodemod(cfg) |
| 32 | |
| 33 | assert.Equal(t, cfg.ID, codemod.ID, "ID should match config") |
| 34 | assert.Equal(t, cfg.Name, codemod.Name, "Name should match config") |
| 35 | assert.Equal(t, cfg.Description, codemod.Description, "Description should match config") |
| 36 | assert.Equal(t, cfg.IntroducedIn, codemod.IntroducedIn, "IntroducedIn should match config") |
| 37 | require.NotNil(t, codemod.Apply, "Apply function should not be nil") |
| 38 | } |
| 39 | |
| 40 | func TestNewFieldRemovalCodemod_ParentKeyMissing(t *testing.T) { |
| 41 | codemod := newFieldRemovalCodemod(baseFieldRemovalConfig()) |
nothing calls this directly
no test coverage detected