baseFieldRemovalConfig returns a minimal valid fieldRemovalCodemodConfig for testing.
()
| 14 | |
| 15 | // baseFieldRemovalConfig returns a minimal valid fieldRemovalCodemodConfig for testing. |
| 16 | func baseFieldRemovalConfig() fieldRemovalCodemodConfig { |
| 17 | return fieldRemovalCodemodConfig{ |
| 18 | ID: "test-removal", |
| 19 | Name: "Remove test field", |
| 20 | Description: "Removes the test field for testing purposes", |
| 21 | IntroducedIn: "1.0.0", |
| 22 | ParentKey: "parent", |
| 23 | FieldKey: "child", |
| 24 | LogMsg: "Applied test field removal", |
| 25 | Log: testFactoryLog, |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | func TestNewFieldRemovalCodemod_Metadata(t *testing.T) { |
| 30 | cfg := baseFieldRemovalConfig() |
no outgoing calls
no test coverage detected