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

Function baseFieldRemovalConfig

pkg/cli/codemod_factory_test.go:16–27  ·  view source on GitHub ↗

baseFieldRemovalConfig returns a minimal valid fieldRemovalCodemodConfig for testing.

()

Source from the content-addressed store, hash-verified

14
15// baseFieldRemovalConfig returns a minimal valid fieldRemovalCodemodConfig for testing.
16func 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
29func TestNewFieldRemovalCodemod_Metadata(t *testing.T) {
30 cfg := baseFieldRemovalConfig()

Calls

no outgoing calls

Tested by

no test coverage detected