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

Function TestSpec_PublicAPI_GetAllCodemods

pkg/cli/spec_test.go:254–263  ·  view source on GitHub ↗

TestSpec_PublicAPI_GetAllCodemods validates that GetAllCodemods returns at least one codemod. Spec: "Returns all available codemods"

(t *testing.T)

Source from the content-addressed store, hash-verified

252// TestSpec_PublicAPI_GetAllCodemods validates that GetAllCodemods returns at least one codemod.
253// Spec: "Returns all available codemods"
254func TestSpec_PublicAPI_GetAllCodemods(t *testing.T) {
255 codemods := cli.GetAllCodemods()
256 require.NotEmpty(t, codemods, "GetAllCodemods should return at least one codemod")
257 for _, c := range codemods {
258 assert.NotEmpty(t, c.ID, "each Codemod should have a non-empty ID")
259 assert.NotEmpty(t, c.Name, "each Codemod should have a non-empty Name")
260 assert.NotEmpty(t, c.Description, "each Codemod should have a non-empty Description")
261 assert.NotNil(t, c.Apply, "each Codemod should have a non-nil Apply function")
262 }
263}
264
265// TestSpec_PublicAPI_ResolveArtifactFilter validates that ResolveArtifactFilter expands aliases.
266// Spec: "Expands artifact set aliases to concrete artifact names"

Callers

nothing calls this directly

Calls 1

GetAllCodemodsFunction · 0.92

Tested by

no test coverage detected