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

Function Test_ActionsGet

pkg/github/actions_test.go:212–225  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

210}
211
212func Test_ActionsGet(t *testing.T) {
213 // Verify tool definition once
214 toolDef := ActionsGet(translations.NullTranslationHelper)
215 require.NoError(t, toolsnaps.Test(toolDef.Tool.Name, toolDef.Tool))
216
217 assert.Equal(t, "actions_get", toolDef.Tool.Name)
218 assert.NotEmpty(t, toolDef.Tool.Description)
219 inputSchema := toolDef.Tool.InputSchema.(*jsonschema.Schema)
220 assert.Contains(t, inputSchema.Properties, "method")
221 assert.Contains(t, inputSchema.Properties, "owner")
222 assert.Contains(t, inputSchema.Properties, "repo")
223 assert.Contains(t, inputSchema.Properties, "resource_id")
224 assert.ElementsMatch(t, inputSchema.Required, []string{"method", "owner", "repo", "resource_id"})
225}
226
227func Test_ActionsGet_GetWorkflow(t *testing.T) {
228 toolDef := ActionsGet(translations.NullTranslationHelper)

Callers

nothing calls this directly

Calls 2

TestFunction · 0.92
ActionsGetFunction · 0.85

Tested by

no test coverage detected