(t *testing.T)
| 210 | } |
| 211 | |
| 212 | func 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 | |
| 227 | func Test_ActionsGet_GetWorkflow(t *testing.T) { |
| 228 | toolDef := ActionsGet(translations.NullTranslationHelper) |
nothing calls this directly
no test coverage detected