(t *testing.T)
| 557 | } |
| 558 | |
| 559 | func 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 | |
| 576 | func Test_ProjectsGet_GetProject(t *testing.T) { |
| 577 | toolDef := ProjectsGet(translations.NullTranslationHelper) |
nothing calls this directly
no test coverage detected