MCPcopy Index your code
hub / github.com/github/github-mcp-server / Test_ProjectsGet

Function Test_ProjectsGet

pkg/github/projects_test.go:559–574  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

557}
558
559func Test_ProjectsGet(t *testing.T) {
560 // Verify tool definition once
561 toolDef := ProjectsGet(translations.NullTranslationHelper)
562 require.NoError(t, toolsnaps.Test(toolDef.Tool.Name, toolDef.Tool))
563
564 assert.Equal(t, "projects_get", toolDef.Tool.Name)
565 assert.NotEmpty(t, toolDef.Tool.Description)
566 inputSchema := toolDef.Tool.InputSchema.(*jsonschema.Schema)
567 assert.Contains(t, inputSchema.Properties, "method")
568 assert.Contains(t, inputSchema.Properties, "owner")
569 assert.Contains(t, inputSchema.Properties, "owner_type")
570 assert.Contains(t, inputSchema.Properties, "project_number")
571 assert.Contains(t, inputSchema.Properties, "field_id")
572 assert.Contains(t, inputSchema.Properties, "item_id")
573 assert.ElementsMatch(t, inputSchema.Required, []string{"method"})
574}
575
576func Test_ProjectsGet_GetProject(t *testing.T) {
577 toolDef := ProjectsGet(translations.NullTranslationHelper)

Callers

nothing calls this directly

Calls 2

TestFunction · 0.92
ProjectsGetFunction · 0.85

Tested by

no test coverage detected