MCPcopy
hub / github.com/github/github-mcp-server / Test_ActionsList

Function Test_ActionsList

pkg/github/actions_test.go:19–31  ·  view source on GitHub ↗

Tests for consolidated actions tools

(t *testing.T)

Source from the content-addressed store, hash-verified

17// Tests for consolidated actions tools
18
19func Test_ActionsList(t *testing.T) {
20 // Verify tool definition once
21 toolDef := ActionsList(translations.NullTranslationHelper)
22 require.NoError(t, toolsnaps.Test(toolDef.Tool.Name, toolDef.Tool))
23
24 assert.Equal(t, "actions_list", toolDef.Tool.Name)
25 assert.NotEmpty(t, toolDef.Tool.Description)
26 inputSchema := toolDef.Tool.InputSchema.(*jsonschema.Schema)
27 assert.Contains(t, inputSchema.Properties, "method")
28 assert.Contains(t, inputSchema.Properties, "owner")
29 assert.Contains(t, inputSchema.Properties, "repo")
30 assert.ElementsMatch(t, inputSchema.Required, []string{"method", "owner", "repo"})
31}
32
33func Test_ActionsList_ListWorkflows(t *testing.T) {
34 toolDef := ActionsList(translations.NullTranslationHelper)

Callers

nothing calls this directly

Calls 2

TestFunction · 0.92
ActionsListFunction · 0.85

Tested by

no test coverage detected