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

Function TestNewFieldRemovalCodemod_Metadata

pkg/cli/codemod_factory_test.go:29–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27}
28
29func 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
40func TestNewFieldRemovalCodemod_ParentKeyMissing(t *testing.T) {
41 codemod := newFieldRemovalCodemod(baseFieldRemovalConfig())

Callers

nothing calls this directly

Calls 2

baseFieldRemovalConfigFunction · 0.85
newFieldRemovalCodemodFunction · 0.85

Tested by

no test coverage detected