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

Function TestGetGrepToolRemovalCodemod

pkg/cli/codemod_grep_tool_test.go:12–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestGetGrepToolRemovalCodemod(t *testing.T) {
13 codemod := getGrepToolRemovalCodemod()
14
15 // Verify codemod metadata
16 assert.Equal(t, "grep-tool-removal", codemod.ID, "Codemod ID should match")
17 assert.Equal(t, "Remove deprecated tools.grep field", codemod.Name, "Codemod name should match")
18 assert.NotEmpty(t, codemod.Description, "Codemod should have a description")
19 assert.Equal(t, "0.7.0", codemod.IntroducedIn, "Codemod version should match")
20 require.NotNil(t, codemod.Apply, "Codemod should have an Apply function")
21}
22
23func TestGrepToolRemovalCodemod_BasicRemoval(t *testing.T) {
24 codemod := getGrepToolRemovalCodemod()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected