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

Function getCodemodByID

pkg/cli/fix_command_test.go:18–26  ·  view source on GitHub ↗

getCodemodByID is a helper function to find a codemod by ID

(id string)

Source from the content-addressed store, hash-verified

16
17// getCodemodByID is a helper function to find a codemod by ID
18func getCodemodByID(id string) *Codemod {
19 codemods := GetAllCodemods()
20 for _, cm := range codemods {
21 if cm.ID == id {
22 return &cm
23 }
24 }
25 return nil
26}
27
28func TestProcessWorkflowFileWithInfo_WriteOutputUsesSingleCheckmark(t *testing.T) {
29 tmpDir := t.TempDir()

Calls 1

GetAllCodemodsFunction · 0.85

Tested by

no test coverage detected